SuperMarioOdysseyOnline/.github/workflows/release.yml
Robin C. Ladiges aff422a6e0
allow build or pre-release details in release tags
Examples:
- v1.2.3-rc.1 (release candidate 1)
- v1.2.3-dev+2 (dev pre-release, build 2)
2022-08-13 22:50:36 +02:00

49 lines
1 KiB
YAML

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]+-*'
jobs:
build:
runs-on: ubuntu-latest
outputs:
filename: ${{ steps.build.outputs.filename }}
steps:
-
name : Checkout
uses : actions/checkout@v3
-
name : Build artifacts
id : build
uses : ./.github/actions/build
with:
tag : ${{ github.ref_name }}
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 }}
-
name : Attach build artifacts to release
uses : ./.github/actions/attach
with:
filename : ${{ needs.build.outputs.filename }}
upload_url : ${{ steps.release.outputs.upload_url }}
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}