Skip to content

Commit

Permalink
Release managment
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenvdlinde committed Aug 27, 2024
1 parent 95180c2 commit 11b836d
Show file tree
Hide file tree
Showing 113 changed files with 166 additions and 0 deletions.
Empty file modified .eslintrc.js
100644 → 100755
Empty file.
166 changes: 166 additions & 0 deletions .github/workflows/release-workflows.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,166 @@
name: Release Workflow

on: [push]

jobs:
release-management:
runs-on: ubuntu-latest
steps:

- name: Set app env
run: |
# Split and keep last
echo "APP_NAME=${GITHUB_REPOSITORY##*/}" >> $GITHUB_ENV
echo "APP_VERSION=${GITHUB_REF##*/}" >> $GITHUB_ENV
# Step 1: Checkout the code
- name: Checkout Code
uses: actions/checkout@v3
with:
ref: ${{ github.head_ref }} # Checkout the correct branch name
fetch-depth: 0 # Fetch the whole repo history

# Step 2: Prepare the signing certificate and key
- name: Prepare Signing Certificate and Key
run: |
echo "${{ secrets.NEXTCLOUD_SIGNING_CERT }}" > signing-cert.crt
echo "${{ secrets.NEXTCLOUD_SIGNING_KEY }}" > signing-key.key
# Step 3: Install Node.js dependencies using npm
- name: Install npm dependencies
uses: actions/setup-node@v3
with:
node-version: '18.x' # Specify Node.js version

# Step 4: Install PHP extensions
- name: Set up PHP and install extensions
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
extensions: zip, gd

# Step 5: Build the node dependencies
- run: npm ci

# Step 6: Build the node dependencies
- run: npm run build

# Step 7: Build composer dependencies
- run: composer i --no-dev

# Step 8: Copy the files into the package directory, excluding .git and package itself
- name: Copy the package files into the package
run: |
mkdir -p package/zaakafhandelapp
rsync -av --progress \
--exclude='package' \
--exclude='.git' \
--exclude='.github' \
--exclude='.vscode' \
--exclude='docker' \
--exclude='docs' \
--exclude='node_modules' \
--exclude='src' \
--exclude='test' \
--exclude='package-lock.json' \
--exclude='composer.lock' \
--exclude='composer-setup.php' \
--exclude='.phpunit.result.cache' \
--exclude='phpmd.xml' \
--exclude='signing-key.key' \
--exclude='package.json' \
--exclude='composer.json' \
--exclude='coverage.txt' \
--exclude='signing-cert.crt' \
--exclude='docker-compose.yml' \
--exclude='webpack.config.js' \
--exclude='.prettierrc' \
--exclude='psalm.xml' \
--exclude='phpunit.xml' \
--exclude='tsconfig.json' \
--exclude='changelog-ci-config.json' \
--exclude='jest.config.js' \
--exclude='.gitattributes' \
--exclude='.php-cs-fixer.dist.php' \
--exclude='.gitignore' \
--exclude='.eslintrc.js' \
--exclude='stylelint.config.js' \
--exclude='.babelrc' \
--exclude='.nvmrc' \
./ package/zaakafhandelapp/
# Step 9: Create the TAR.GZ archive with code in zaakafhandelapp directory
- name: Create Tarball
run: |
cd package && tar -czf ../nexcloud-release.tar.gz zaakafhandelapp
# Step 10: Sign the TAR.GZ file with OpenSSL
- name: Sign the TAR.GZ file with OpenSSL
run: |
openssl dgst -sha512 -sign signing-key.key nexcloud-release.tar.gz | openssl base64 -out nexcloud-release.signature
# Step 11: Generate Git version information
- name: Git Version
id: version
uses: codacy/[email protected]
with:
release-branch: main

# Step 12: Extract repository description
- name: Extract repository description
id: repo-description
run: |
description=$(jq -r '.description' <(curl -s https://api.github.com/repos/${{ github.repository }}))
echo "REPO_DESCRIPTION=$description" >> $GITHUB_ENV
# Step 13: Run Changelog CI
- name: Run Changelog CI
if: github.ref == 'refs/heads/master'
uses: saadmk11/[email protected]
with:
release_version: ${{ steps.version.outputs.version }}
config_file: changelog-ci-config.json

# Step 14: Output the version
- name: Use the version
run: |
echo ${{ steps.version.outputs.version }}
# Step 15: Copy the files into the package directory, excluding .git and package itself
- name: Copy the package files into the package
run: |
mkdir -p package/zaakafhandelapp
rsync -av --progress --exclude='package' --exclude='.git' ./ package/zaakafhandelapp/
# Step 18: Create a new release on GitHub
- name: Upload Release
uses: ncipollo/[email protected]
with:
artifacts: |
LICENSE.md
nexcloud-release.tar.gz
nexcloud-release.signature
zaakafhandelapp-build.zip
zaakafhandelapp-build.tar.gz
token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ steps.version.outputs.version }}

- name: Attach tarball to github release
uses: svenstaro/upload-release-action@04733e069f2d7f7f0b4aebc4fbdbce8613b03ccd # v2
id: attach_to_release
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: nexcloud-release.tar.gz
asset_name: ${{ env.APP_NAME }}-${{ env.APP_VERSION }}.tar.gz
tag: ${{ github.ref }}
overwrite: true

- name: Upload app to Nextcloud appstore
uses: nextcloud-releases/nextcloud-appstore-push-action@a011fe619bcf6e77ddebc96f9908e1af4071b9c1 # v1
with:
app_name: ${{ env.APP_NAME }}
appstore_token: ${{ secrets.NEXTCLOUD_APPSTORE_TOKEN }}
download_url: ${{ steps.attach_to_release.outputs.browser_download_url }}
app_private_key: ${{ secrets.NEXTCLOUD_SIGNING_KEY }}


Empty file modified .gitignore
100644 → 100755
Empty file.
Empty file modified .nvmrc
100644 → 100755
Empty file.
Empty file modified .php-cs-fixer.dist.php
100644 → 100755
Empty file.
Empty file modified .prettierrc
100644 → 100755
Empty file.
Empty file modified .vscode/settings.json
100644 → 100755
Empty file.
Empty file modified DESIGN.md
100644 → 100755
Empty file.
Empty file modified README.md
100644 → 100755
Empty file.
Empty file modified appinfo/info.xml
100644 → 100755
Empty file.
Empty file modified appinfo/routes.php
100644 → 100755
Empty file.
Empty file modified composer.json
100644 → 100755
Empty file.
Empty file modified css/main.css
100644 → 100755
Empty file.
Empty file modified img/app-dark.svg
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified img/app.svg
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified img/appsOverview.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified img/navigationBarZaa.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified img/profielOverview.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified img/zaaApp.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified lib/AppInfo/Application.php
100644 → 100755
Empty file.
Empty file modified lib/Controller/BerichtenController.php
100644 → 100755
Empty file.
Empty file modified lib/Controller/BesluitenController.php
100644 → 100755
Empty file.
Empty file modified lib/Controller/ConfigurationController.php
100644 → 100755
Empty file.
Empty file modified lib/Controller/DashboardController.php
100644 → 100755
Empty file.
Empty file modified lib/Controller/DocumentenController.php
100644 → 100755
Empty file.
Empty file modified lib/Controller/KlantenController.php
100644 → 100755
Empty file.
Empty file modified lib/Controller/ResultatenController.php
100644 → 100755
Empty file.
Empty file modified lib/Controller/RollenController.php
100644 → 100755
Empty file.
Empty file modified lib/Controller/StatusenController.php
100644 → 100755
Empty file.
Empty file modified lib/Controller/TakenController.php
100644 → 100755
Empty file.
Empty file modified lib/Controller/ZaakAuditTrailController.php
100644 → 100755
Empty file.
Empty file modified lib/Controller/ZaakBesluitenController.php
100644 → 100755
Empty file.
Empty file modified lib/Controller/ZaakEigenschappenController.php
100644 → 100755
Empty file.
Empty file modified lib/Controller/ZaakInformatieObjectenController.php
100644 → 100755
Empty file.
Empty file modified lib/Controller/ZaakObjectenController.php
100644 → 100755
Empty file.
Empty file modified lib/Controller/ZaakTypenController.php
100644 → 100755
Empty file.
Empty file modified lib/Controller/ZakenController.php
100644 → 100755
Empty file.
Empty file modified lib/Service/CallService.php
100644 → 100755
Empty file.
Empty file modified openapi.json
100644 → 100755
Empty file.
Empty file modified package-lock.json
100644 → 100755
Empty file.
Empty file modified package.json
100644 → 100755
Empty file.
Empty file modified psalm.xml
100644 → 100755
Empty file.
Empty file modified settings/adminSettings.php
100644 → 100755
Empty file.
Empty file modified src/App.vue
100644 → 100755
Empty file.
Empty file modified src/dialogs/Dialogs.vue
100644 → 100755
Empty file.
Empty file modified src/main.js
100644 → 100755
Empty file.
Empty file modified src/modals/Modals.vue
100644 → 100755
Empty file.
Empty file modified src/modals/berichten/AddBericht.vue
100644 → 100755
Empty file.
Empty file modified src/modals/berichten/EditBericht.vue
100644 → 100755
Empty file.
Empty file modified src/modals/klanten/AddKlant.vue
100644 → 100755
Empty file.
Empty file modified src/modals/klanten/EditKlant.vue
100644 → 100755
Empty file.
Empty file modified src/modals/rollen/AddRol.vue
100644 → 100755
Empty file.
Empty file modified src/modals/rollen/EditRol.vue
100644 → 100755
Empty file.
Empty file modified src/modals/taken/AddTaak.vue
100644 → 100755
Empty file.
Empty file modified src/modals/taken/EditTaak.vue
100644 → 100755
Empty file.
Empty file modified src/modals/zaakTypen/AddZaakType.vue
100644 → 100755
Empty file.
Empty file modified src/modals/zaakTypen/EditZaakType.vue
100644 → 100755
Empty file.
Empty file modified src/modals/zaken/AddZaak.vue
100644 → 100755
Empty file.
Empty file modified src/modals/zaken/EditZaak.vue
100644 → 100755
Empty file.
Empty file modified src/navigation/Configuration.vue
100644 → 100755
Empty file.
Empty file modified src/navigation/MainMenu.vue
100644 → 100755
Empty file.
Empty file modified src/pinia.js
100644 → 100755
Empty file.
Empty file modified src/sidebars/SideBars.vue
100644 → 100755
Empty file.
Empty file modified src/sidebars/dashboard/DashboardSideBar.vue
100644 → 100755
Empty file.
Empty file modified src/sidebars/search/SearchSideBar.vue
100644 → 100755
Empty file.
Empty file modified src/store.js
100644 → 100755
Empty file.
Empty file modified src/views/Views.vue
100644 → 100755
Empty file.
Empty file modified src/views/berichten/BerichtDetails.vue
100644 → 100755
Empty file.
Empty file modified src/views/berichten/BerichtenIndex.vue
100644 → 100755
Empty file.
Empty file modified src/views/berichten/BerichtenList.vue
100644 → 100755
Empty file.
Empty file modified src/views/berichten/ZaakBerichten.vue
100644 → 100755
Empty file.
Empty file modified src/views/besluiten/BesluitDetails.vue
100644 → 100755
Empty file.
Empty file modified src/views/besluiten/BesluitenIndex.vue
100644 → 100755
Empty file.
Empty file modified src/views/besluiten/BesluitenList.vue
100644 → 100755
Empty file.
Empty file modified src/views/besluiten/ZaakBesluiten.vue
100644 → 100755
Empty file.
Empty file modified src/views/dashboard/DashboardIndex.vue
100644 → 100755
Empty file.
Empty file modified src/views/documenten/DocumentDetails.vue
100644 → 100755
Empty file.
Empty file modified src/views/documenten/DocumentenIndex.vue
100644 → 100755
Empty file.
Empty file modified src/views/documenten/DocumentenList.vue
100644 → 100755
Empty file.
Empty file modified src/views/documenten/ZaakDocumenten.vue
100644 → 100755
Empty file.
Empty file modified src/views/eigenschappen/ZaakEigenschappen.vue
100644 → 100755
Empty file.
Empty file modified src/views/klanten/KlantDetails.vue
100644 → 100755
Empty file.
Empty file modified src/views/klanten/KlantenIndex.vue
100644 → 100755
Empty file.
Empty file modified src/views/klanten/KlantenList.vue
100644 → 100755
Empty file.
Empty file modified src/views/resultaten/ResultaatDetails.vue
100644 → 100755
Empty file.
Empty file modified src/views/resultaten/ResultatenIndex.vue
100644 → 100755
Empty file.
Empty file modified src/views/resultaten/ResultatenList.vue
100644 → 100755
Empty file.
Empty file modified src/views/rollen/RolDetails.vue
100644 → 100755
Empty file.
Empty file modified src/views/rollen/RollenIndex.vue
100644 → 100755
Empty file.
Empty file modified src/views/rollen/RollenList.vue
100644 → 100755
Empty file.
Empty file modified src/views/rollen/ZaakRollen.vue
100644 → 100755
Empty file.
Empty file modified src/views/search/SearchIndex.vue
100644 → 100755
Empty file.
Empty file modified src/views/statussen/StatusDetails.vue
100644 → 100755
Empty file.
Empty file modified src/views/statussen/StatussenIndex.vue
100644 → 100755
Empty file.
Empty file modified src/views/statussen/StatussenList.vue
100644 → 100755
Empty file.
Empty file modified src/views/taken/TaakDetails.vue
100644 → 100755
Empty file.
Empty file modified src/views/taken/TakenIndex.vue
100644 → 100755
Empty file.
Empty file modified src/views/taken/TakenList.vue
100644 → 100755
Empty file.
Empty file modified src/views/taken/ZaakTaken.vue
100644 → 100755
Empty file.
Empty file modified src/views/zaakTypen/ZaakTypeDetails.vue
100644 → 100755
Empty file.
Empty file modified src/views/zaakTypen/ZaakTypenList.vue
100644 → 100755
Empty file.
Empty file modified src/views/zaakTypen/ZakenTypenIndex.vue
100644 → 100755
Empty file.
Empty file modified src/views/zaken/ZaakDetails.vue
100644 → 100755
Empty file.
Empty file modified src/views/zaken/ZakenIndex.vue
100644 → 100755
Empty file.
Empty file modified src/views/zaken/ZakenList.vue
100644 → 100755
Empty file.
Empty file modified src/views/zaken/ZakenZaken.vue
100644 → 100755
Empty file.
Empty file modified stylelint.config.js
100644 → 100755
Empty file.
Empty file modified templates/index.php
100644 → 100755
Empty file.
Empty file modified vendor-bin/cs-fixer/composer.json
100644 → 100755
Empty file.
Empty file modified vendor-bin/openapi-extractor/composer.json
100644 → 100755
Empty file.
Empty file modified vendor-bin/phpunit/composer.json
100644 → 100755
Empty file.
Empty file modified vendor-bin/psalm/composer.json
100644 → 100755
Empty file.
Empty file modified webpack.config.js
100644 → 100755
Empty file.

0 comments on commit 11b836d

Please sign in to comment.