Skip to content

Commit

Permalink
Update release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
masterrob94 authored Sep 16, 2023
1 parent f96d7ec commit 1966bae
Showing 1 changed file with 39 additions and 43 deletions.
82 changes: 39 additions & 43 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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: |
Expand All @@ -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:
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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: |
Expand All @@ -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:
Expand Down Expand Up @@ -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

0 comments on commit 1966bae

Please sign in to comment.