mirror of
https://github.com/ruffle-rs/ruffle-android.git
synced 2025-03-01 10:16:50 +00:00
github: Add a workflow for making a release out of the last successful build.
This commit is contained in:
parent
576f706733
commit
58e3bcc521
39
.github/workflows/release.yml
vendored
Normal file
39
.github/workflows/release.yml
vendored
Normal file
@ -0,0 +1,39 @@
|
||||
name: Make a Release
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
make-release:
|
||||
name: Make Release
|
||||
runs-on: ubuntu-22.04
|
||||
|
||||
steps:
|
||||
- name: Download artifacts
|
||||
id: download-artifacts
|
||||
uses: dawidd6/action-download-artifact@v2
|
||||
with:
|
||||
workflow: build.yml
|
||||
branch: main
|
||||
workflow_conclusion: success
|
||||
name: ruffle-release-apks
|
||||
|
||||
- name: Get current date
|
||||
uses: 1466587594/get-current-time@v2.1.1
|
||||
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 }}
|
Loading…
x
Reference in New Issue
Block a user