yuzu-emu
/
yuzu
Archived
1
0
Fork 0

CI: use the verify pipeline to do releases

This commit is contained in:
liushuyu 2023-05-27 22:36:56 -06:00 committed by bunnei
parent 8426e97f45
commit be6159842a
1 changed files with 26 additions and 2 deletions

View File

@ -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/get-git-tag@v3.0.2
uses: olegtarasov/get-tag@v2.1.2
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/upload-assets@0.4.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
asset_paths: '["./**/*.tar.*","./**/*.AppImage","./**/*.7z","./**/*.zip","./**/*.apk","./**/*.aab"]'