diff options
author | liushuyu <[email protected]> | 2023-05-27 22:36:56 -0600 |
---|---|---|
committer | bunnei <[email protected]> | 2023-06-03 00:06:04 -0700 |
commit | be6159842ab1790d2efb48f8dad14f80e47d7b1f (patch) | |
tree | 0ad08d60ad4922382b470a7243b4d26169a6f725 /.github | |
parent | 8426e97f45073f795f97944f483a14b144c99683 (diff) | |
download | yuzu-android-be6159842ab1790d2efb48f8dad14f80e47d7b1f.tar.gz yuzu-android-be6159842ab1790d2efb48f8dad14f80e47d7b1f.zip |
CI: use the verify pipeline to do releases
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/build.yml (renamed from .github/workflows/verify.yml) | 28 |
1 files changed, 26 insertions, 2 deletions
diff --git a/.github/workflows/verify.yml b/.github/workflows/build.yml index c65e0bc5b..298eb4745 100644 --- a/.github/workflows/verify.yml +++ b/.github/workflows/build.yml @@ -4,8 +4,11 @@ name: 'yuzu verify' on: + push: +# branches: [ main ] + tags: [ "*" ] pull_request: - branches: [ master ] + branches: [ main ] env: PR_NUMBER: pr${{ github.event.number }} @@ -140,7 +143,7 @@ jobs: restore-keys: | ${{ runner.os }}-android- - name: Query tag name - uses: little-core-labs/[email protected] + uses: olegtarasov/[email protected] id: tagName - name: Install dependencies run: | @@ -160,3 +163,24 @@ jobs: with: name: android path: artifacts/ + release: + runs-on: ubuntu-latest + needs: [ android ] + if: ${{ startsWith(github.ref, 'refs/tags/') }} + steps: + - uses: actions/download-artifact@v3 + - name: Create release + uses: actions/create-release@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + tag_name: ${{ github.ref_name }} + release_name: ${{ github.ref_name }} + draft: false + prerelease: false + - name: Upload artifacts + uses: alexellis/[email protected] + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + asset_paths: '["./**/*.tar.*","./**/*.AppImage","./**/*.7z","./**/*.zip","./**/*.apk","./**/*.aab"]' |