-
Notifications
You must be signed in to change notification settings - Fork 39
41 lines (34 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
39
40
41
name: Make a Release
on:
workflow_dispatch:
jobs:
make-release:
name: Make Release
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Download artifacts
id: download-artifacts
uses: dawidd6/action-download-artifact@v6
with:
workflow: build.yml
branch: main
workflow_conclusion: success
name: ruffle-release-apks
- name: Get current date
uses: 1466587594/get-current-time@v2.1.2
id: current_date
with:
format: YYYYMMDD
- name: Create release
id: create_release
run: |
tag_name="${{ steps.current_date.outputs.formattedTime }}"
release_name="${{ steps.current_date.outputs.formattedTime }}"
gh release create "$tag_name" --title "$release_name" --generate-notes --prerelease
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Upload APKs
run: gh release upload "${{ steps.current_date.outputs.formattedTime }}" *.apk
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}