From 1966bae7d58047489854207a0c91ac1b2f5fe95a Mon Sep 17 00:00:00 2001 From: Robin Breitfeld Date: Sat, 16 Sep 2023 06:52:21 +0200 Subject: [PATCH] Update release.yml --- .github/workflows/release.yml | 82 +++++++++++++++++------------------ 1 file changed, 39 insertions(+), 43 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7beb8897..66cd383d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -2,11 +2,11 @@ name: release on: push: tags: - - "v*" - - "!v*-alpha*" - - "!v*-beta*" - - "!v*-streamer*" - - "!v*-rc*" + - 'v*' + - '!v*-alpha*' + - '!v*-beta*' + - '!v*-streamer*' + - '!v*-rc*' jobs: build-a318: runs-on: ubuntu-latest @@ -52,7 +52,7 @@ jobs: fail-if-no-assets: false fail-if-no-release: false - name: Setup Package - run: | + run: | ./scripts/dev-env/run.sh ./scripts/setup.sh - name: Copy Sources run: | @@ -66,14 +66,13 @@ jobs: cd ./build-a318ceo/out/ zip -r ../../${{ env.BUILD_DIR_NAME }}/${{ env.ZIP_NAME_A318 }} ./lvfr-horizonsim-airbus-a318-ceo/ cd ../../ - - name: Nextcloud Artifact - uses: trympet/nextcloud-artifacts-action@v2 + - name: Upload to Google Drive + uses: adityak74/google-drive-upload-git-action@main with: - name: 'lvfr-horizonsim-airbus-a318-ceo' - path: './**/*.zip' - nextcloud-url: ${{ secrets.NEXTCLOUD_URL }} - nextcloud-username: ${{ secrets.NEXTCLOUD_USERNAME }} - nextcloud-password: ${{ secrets.NEXTCLOUD_PASSWORD }} + credentials: ${{ secrets.GDRIVE_CREDS_A318 }} + filename: ./${{ env.BUILD_DIR_NAME }}/${{ env.ZIP_NAME_A318 }} + folderId: ${{ secrets.GDRIVEFOLDERIDRELEASE }} + overwrite: "true" # optional boolean build-a319: runs-on: ubuntu-latest env: @@ -118,28 +117,27 @@ jobs: fail-if-no-assets: false fail-if-no-release: false - name: Setup Package - run: | + run: | ./scripts/dev-env/run.sh ./scripts/setup.sh - name: Copy Sources run: | ./scripts/dev-env/run.sh ./scripts/copy_a319hs.sh - name: Build A319HS Package run: | - ./scripts/dev-env/run.sh ./scripts/build_a319hs.sh --no-tty -j 4 + ./scripts/dev-env/run.sh ./scripts/build_a319hs.sh --no-tty -j 4 - name: Build A319HS ZIP files run: | - mkdir ./${{ env.BUILD_DIR_NAME }} - cd ./build-a319ceo/out/ - zip -r ../../${{ env.BUILD_DIR_NAME }}/${{ env.ZIP_NAME_A319 }} ./lvfr-horizonsim-airbus-a319-ceo/ - cd ../../ - - name: Nextcloud Artifact - uses: trympet/nextcloud-artifacts-action@v2 + mkdir ./${{ env.BUILD_DIR_NAME }} + cd ./build-a319ceo/out/ + zip -r ../../${{ env.BUILD_DIR_NAME }}/${{ env.ZIP_NAME_A319 }} ./lvfr-horizonsim-airbus-a319-ceo/ + cd ../../ + - name: Upload to Google Drive + uses: adityak74/google-drive-upload-git-action@main with: - name: 'lvfr-horizonsim-airbus-a319-ceo' - path: './**/*.zip' - nextcloud-url: ${{ secrets.NEXTCLOUD_URL }} - nextcloud-username: ${{ secrets.NEXTCLOUD_USERNAME }} - nextcloud-password: ${{ secrets.NEXTCLOUD_PASSWORD }} + credentials: ${{ secrets.GDRIVE_CREDS_A319 }} + filename: ./${{ env.BUILD_DIR_NAME }}/${{ env.ZIP_NAME_A319 }} + folderId: ${{ secrets.GDRIVEFOLDERIDRELEASE }} + overwrite: "true" # optional boolean build-a320: runs-on: ubuntu-latest env: @@ -184,7 +182,7 @@ jobs: fail-if-no-assets: false fail-if-no-release: false - name: Setup Package - run: | + run: | ./scripts/dev-env/run.sh ./scripts/setup.sh - name: Copy Sources run: | @@ -198,14 +196,13 @@ jobs: cd ./build-a320ceo/out/ zip -r ../../${{ env.BUILD_DIR_NAME }}/${{ env.ZIP_NAME_A320 }} ./lvfr-horizonsim-airbus-a320-ceo/ cd ../../ - - name: Nextcloud Artifact - uses: trympet/nextcloud-artifacts-action@v2 + - name: Upload to Google Drive + uses: adityak74/google-drive-upload-git-action@main with: - name: 'lvfr-horizonsim-airbus-a320-ceo' - path: './**/*.zip' - nextcloud-url: ${{ secrets.NEXTCLOUD_URL }} - nextcloud-username: ${{ secrets.NEXTCLOUD_USERNAME }} - nextcloud-password: ${{ secrets.NEXTCLOUD_PASSWORD }} + credentials: ${{ secrets.GDRIVE_CREDS_A320 }} + filename: ./${{ env.BUILD_DIR_NAME }}/${{ env.ZIP_NAME_A320 }} + folderId: ${{ secrets.GDRIVEFOLDERIDRELEASE }} + overwrite: "true" # optional boolean build-a321: runs-on: ubuntu-latest env: @@ -250,25 +247,24 @@ jobs: fail-if-no-assets: false fail-if-no-release: false - name: Setup Package - run: | + run: | ./scripts/dev-env/run.sh ./scripts/setup.sh - name: Copy Sources run: | ./scripts/dev-env/run.sh ./scripts/copy_a321hs.sh - name: Build A21NHS Package run: | - ./scripts/dev-env/run.sh ./scripts/build_a321hs.sh --no-tty -j 4 + ./scripts/dev-env/run.sh ./scripts/build_a321hs.sh --no-tty -j 4 - name: Build A21NHS ZIP files run: | mkdir ./${{ env.BUILD_DIR_NAME }} cd ./build-a321neo/out/ zip -r ../../${{ env.BUILD_DIR_NAME }}/${{ env.ZIP_NAME_A321 }} ./lvfr-horizonsim-airbus-a321-neo/ cd ../../ - - name: Nextcloud Artifact - uses: trympet/nextcloud-artifacts-action@v2 + - name: Upload to Google Drive + uses: adityak74/google-drive-upload-git-action@main with: - name: 'lvfr-horizonsim-airbus-a321-neo' - path: './**/*.zip' - nextcloud-url: ${{ secrets.NEXTCLOUD_URL }} - nextcloud-username: ${{ secrets.NEXTCLOUD_USERNAME }} - nextcloud-password: ${{ secrets.NEXTCLOUD_PASSWORD }} + credentials: ${{ secrets.GDRIVE_CREDS_A321 }} + filename: ./${{ env.BUILD_DIR_NAME }}/${{ env.ZIP_NAME_A321 }} + folderId: ${{ secrets.GDRIVEFOLDERIDRELEASE }} + overwrite: "true" # optional boolean