Skip to content

Commit

Permalink
chore(ci): add pre-release workflow creating new pre release and uplo…
Browse files Browse the repository at this point in the history
…ading artifacts
  • Loading branch information
maxjoehnk committed Oct 22, 2023
1 parent 460afb9 commit e98f40a
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -261,3 +261,36 @@ jobs:
name: android-remote
path: crates/ui/build/app/outputs/flutter-apk/app-release.apk
if-no-files-found: error

publish-pre-release:
runs-on: ubuntu-latest
needs:
- build-linux
- bundle-flatpak
- build-android-remote
if: github.ref == 'refs/heads/main'
steps:
- uses: actions/download-artifact@v3
with:
name: linux-headless
path: artifacts/linux/headless
- uses: actions/download-artifact@v3
with:
name: linux-full
path: artifacts/linux/full
- uses: actions/download-artifact@v3
with:
name: Flatpak
path: artifacts/linux/flatpak
- uses: actions/download-artifact@v3
with:
name: android-remote
path: artifacts/android/remote
- name: Create Release
uses: softprops/action-gh-release@v1
with:
tag_name: pre-release/${{ github.run_number }}
name: Pre Release ${{ github.run_number }}
prerelease: true
files: |
artifacts/**/*

0 comments on commit e98f40a

Please sign in to comment.