Skip to content
Snippets Groups Projects
Commit be615984 authored by liushuyu's avatar liushuyu Committed by bunnei
Browse files

CI: use the verify pipeline to do releases

parent 8426e97f
No related branches found
No related tags found
No related merge requests found
...@@ -4,8 +4,11 @@ ...@@ -4,8 +4,11 @@
name: 'yuzu verify' name: 'yuzu verify'
on: on:
push:
# branches: [ main ]
tags: [ "*" ]
pull_request: pull_request:
branches: [ master ] branches: [ main ]
env: env:
PR_NUMBER: pr${{ github.event.number }} PR_NUMBER: pr${{ github.event.number }}
...@@ -140,7 +143,7 @@ jobs: ...@@ -140,7 +143,7 @@ jobs:
restore-keys: | restore-keys: |
${{ runner.os }}-android- ${{ runner.os }}-android-
- name: Query tag name - name: Query tag name
uses: little-core-labs/get-git-tag@v3.0.2 uses: olegtarasov/get-tag@v2.1.2
id: tagName id: tagName
- name: Install dependencies - name: Install dependencies
run: | run: |
...@@ -160,3 +163,24 @@ jobs: ...@@ -160,3 +163,24 @@ jobs:
with: with:
name: android name: android
path: artifacts/ 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"]'
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment