mirror of
https://github.com/CraftyBoss/SuperMarioOdysseyOnline.git
synced 2024-11-22 11:15:15 +00:00
aff422a6e0
Examples: - v1.2.3-rc.1 (release candidate 1) - v1.2.3-dev+2 (dev pre-release, build 2)
49 lines
1 KiB
YAML
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 }}
|