summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorGravatar liushuyu2023-05-27 22:36:56 -0600
committerGravatar bunnei2023-06-03 00:06:04 -0700
commitbe6159842ab1790d2efb48f8dad14f80e47d7b1f (patch)
tree0ad08d60ad4922382b470a7243b4d26169a6f725 /.github/workflows
parentandroid: Clean up app build.gradle (diff)
downloadyuzu-be6159842ab1790d2efb48f8dad14f80e47d7b1f.tar.gz
yuzu-be6159842ab1790d2efb48f8dad14f80e47d7b1f.tar.xz
yuzu-be6159842ab1790d2efb48f8dad14f80e47d7b1f.zip
CI: use the verify pipeline to do releases
Diffstat (limited to '.github/workflows')
-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 @@
4name: 'yuzu verify' 4name: 'yuzu verify'
5 5
6on: 6on:
7 push:
8# branches: [ main ]
9 tags: [ "*" ]
7 pull_request: 10 pull_request:
8 branches: [ master ] 11 branches: [ main ]
9env: 12env:
10 PR_NUMBER: pr${{ github.event.number }} 13 PR_NUMBER: pr${{ github.event.number }}
11 14
@@ -140,7 +143,7 @@ jobs:
140 restore-keys: | 143 restore-keys: |
141 ${{ runner.os }}-android- 144 ${{ runner.os }}-android-
142 - name: Query tag name 145 - name: Query tag name
143 uses: little-core-labs/get-git-tag@v3.0.2 146 uses: olegtarasov/get-tag@v2.1.2
144 id: tagName 147 id: tagName
145 - name: Install dependencies 148 - name: Install dependencies
146 run: | 149 run: |
@@ -160,3 +163,24 @@ jobs:
160 with: 163 with:
161 name: android 164 name: android
162 path: artifacts/ 165 path: artifacts/
166 release:
167 runs-on: ubuntu-latest
168 needs: [ android ]
169 if: ${{ startsWith(github.ref, 'refs/tags/') }}
170 steps:
171 - uses: actions/download-artifact@v3
172 - name: Create release
173 uses: actions/create-release@v1
174 env:
175 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
176 with:
177 tag_name: ${{ github.ref_name }}
178 release_name: ${{ github.ref_name }}
179 draft: false
180 prerelease: false
181 - name: Upload artifacts
182 uses: alexellis/upload-assets@0.4.0
183 env:
184 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
185 with:
186 asset_paths: '["./**/*.tar.*","./**/*.AppImage","./**/*.7z","./**/*.zip","./**/*.apk","./**/*.aab"]'