SuperMarioOdysseyOnline/.github/workflows/release.yml

68 lines
1.7 KiB
YAML
Raw Normal View History

2022-07-12 22:01:23 +00:00
name: Release
on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'
- 'v[0-9]+.[0-9]+.[0-9]+\+*'
- 'v[0-9]+.[0-9]+.[0-9]+-*'
2022-07-12 22:01:23 +00:00
jobs:
build:
2022-09-04 23:41:34 +00:00
strategy:
matrix:
emu : [ Switch, Emulators ]
2022-07-12 22:01:23 +00:00
runs-on: ubuntu-latest
outputs:
2022-09-04 23:41:34 +00:00
filename1: ${{ steps.set-output.outputs.filename-Switch }}
filename2: ${{ steps.set-output.outputs.filename-Emulators }}
2022-07-12 22:01:23 +00:00
steps:
-
name : Checkout
uses : actions/checkout@v3
-
name : Build artifacts
id : build
uses : ./.github/actions/build
with:
tag : ${{ github.ref_name }}
2022-09-04 23:41:34 +00:00
emu : ${{ matrix.emu }}
-
name : Set output
id : set-output
shell : bash
run : |
echo "::set-output name=filename-${{ matrix.emu }}::${{ steps.build.outputs.filename }}"
2022-07-12 22:01:23 +00:00
release:
needs: build
runs-on: ubuntu-latest
steps:
-
name : Checkout
uses : actions/checkout@v3
-
name : Create release
id : release
uses : ./.github/actions/release
with:
tag : ${{ github.ref_name }}
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
-
2022-09-04 23:41:34 +00:00
name : Attach build artifacts to release (Switch)
uses : ./.github/actions/attach
with:
filename : ${{ needs.build.outputs.filename1 }}
upload_url : ${{ steps.release.outputs.upload_url }}
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
-
name : Attach build artifacts to release (Emulators)
2022-07-12 22:01:23 +00:00
uses : ./.github/actions/attach
with:
2022-09-04 23:41:34 +00:00
filename : ${{ needs.build.outputs.filename2 }}
2022-07-12 22:01:23 +00:00
upload_url : ${{ steps.release.outputs.upload_url }}
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}