-
Notifications
You must be signed in to change notification settings - Fork 0
72 lines (68 loc) · 2.23 KB
/
publish_android_beta_version.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
name: 🤖🌈 Publish android alpha version
on:
push:
branches: ['main']
jobs:
distribute:
uses: ForkbombEu/ship-capacitor-apps/.github/workflows/ship_android.yml@main
with:
backend-url: ${{ github.env.test.vars.PUBLIC_BACKEND_URL }}
lane: beta
package-name: com.didroom.verifier
secrets:
keystore-file: ${{ secrets.PLAYSTORE_KEYSTORE }}
service-account: ${{ secrets.PLAYSTORE_SERVICE_ACCOUNT }}
keystore-alias: ${{ secrets.PLAYSTORE_KEYSTORE_ALIAS }}
keystore-password: ${{ secrets.PLAYSTORE_KEYSTORE_PASSWORD }}
keystore-key-password: ${{ secrets.PLAYSTORE_KEYSTORE_KEY_PASSWORD }}
semantic-release:
permissions:
contents: write
needs: distribute
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
outputs:
release: ${{ steps.tag_release.outputs.release }}
version: ${{ steps.tag_release.outputs.version }}
steps:
- uses: dyne/pnpm@main
with:
submodules: true
node-version: '20.11.1'
- name: Tag release
id: tag_release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
npx semantic-release >semantic-release.log
cat semantic-release.log
if [[ `git tag --points-at HEAD` == "" ]]; then
echo "release=False" >> $GITHUB_OUTPUT
else
echo "release=True" >> $GITHUB_OUTPUT
awk '/Published release/ { printf("version=v%s\n",$8) }' semantic-release.log >> $GITHUB_OUTPUT
fi
echo "Result"
cat $GITHUB_OUTPUT
draft-release:
permissions:
contents: write
needs: semantic-release
runs-on: ubuntu-latest
if: ${{ needs.semantic-release.outputs.release == 'True' }}
steps:
- name: download binary artifacts
uses: actions/download-artifact@v4
with:
path: |
release
- name: relase all binary artifacts
uses: softprops/action-gh-release@v1
with:
files: |
release/artifact/*
draft: false
prerelease: false
fail_on_unmatched_files: true
generate_release_notes: true
tag_name: ${{ needs.semantic-release.outputs.version }}