-
Notifications
You must be signed in to change notification settings - Fork 110
38 lines (35 loc) · 1.21 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: release
on:
workflow_run:
workflows: ["Android CI"]
types:
- completed
workflow_dispatch:
jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: write
if: github.event.workflow_run.conclusion == 'success' && startsWith(github.event.workflow_run.head_branch, 'v') && contains(github.event.workflow_run.head_branch, '.')
steps:
- uses: actions/checkout@v4
- name: Download artifact
uses: actions/download-artifact@v4
with:
name: ${{ github.sha }}-build
path: ./artifacts
github-token: ${{ secrets.GITHUB_TOKEN }}
run-id: ${{ github.event.workflow_run.id }}
- name: Extract Release Files
run: |
mkdir -p ./release
cp ./artifacts/fakelinker-lib-debug.aar ./release/fakelinker-debug.aar
cp ./artifacts/fakelinker-lib-release.aar ./release/fakelinker-release.aar
- name: Release Tag
uses: softprops/action-gh-release@v2
with:
files: |
release/fakelinker-debug.aar
release/fakelinker-release.aar
name: ${{ github.event.workflow_run.head_branch }}
tag_name: ${{ github.event.workflow_run.head_branch }}