-
Notifications
You must be signed in to change notification settings - Fork 1
37 lines (33 loc) · 1018 Bytes
/
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
name: Create Release
on:
push:
paths:
- ".workflows/release.yml"
workflow_dispatch:
inputs:
version:
description: "wallet core release version"
required: true
jobs:
upload_assets:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set version tag
run: |
if [ ${{ github.event.inputs.version }} ]; then
echo "VER_NAME=${{ github.event.inputs.version }}" >> $GITHUB_ENV
else
echo "no version"
fi
- name: Download from GPR
run: |
./download.sh ${{ env.VER_NAME }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Upload to release
run: |
gh release create ${{ env.VER_NAME }} --title ${{ env.VER_NAME }} --notes "Wallet Core Android" --draft
cd ${{ env.VER_NAME }} && gh release upload ${{ env.VER_NAME }} ./*.aar ./*.jar ./*.sha1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}