ruffle-android/.github/workflows/release.yml
dependabot[bot] ed5859943e build(deps): bump dawidd6/action-download-artifact from 5 to 6
Bumps [dawidd6/action-download-artifact](https://github.com/dawidd6/action-download-artifact) from 5 to 6.
- [Release notes](https://github.com/dawidd6/action-download-artifact/releases)
- [Commits](https://github.com/dawidd6/action-download-artifact/compare/v5...v6)

---
updated-dependencies:
- dependency-name: dawidd6/action-download-artifact
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-06-17 12:32:53 +02:00

42 lines
1.2 KiB
YAML

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 }}