Release on tag v0.3.1-b2 #5
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
push: | |
tags: | |
- 'v*' | |
name: Release on tag | |
run-name: Release on tag ${{ github.ref_name }} | |
jobs: | |
build_win: | |
name: Build and upload ${{ github.ref_name }} (Windows) | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Get annotation | |
id: tag-data | |
run: | | |
{ | |
echo 'annotation <<EOF' | |
git for-each-ref "${GITHUB_REF}" --format '%(contents)' | |
echo 'EOF' | |
} >> "${GITHUB_OUTPUT}" | |
- name: Build release | |
run: ./build_release_windows.sh "${{ github.ref_name }}" | |
- name: Publish release | |
uses: softprops/action-gh-release@v2 | |
with: | |
make_latest: true | |
body: ${{ steps.tag-data.outputs.annotation }} | |
files: dist/* | |
build_linux: | |
name: Build and upload ${{ github.ref_name }} (Linux) | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Get annotation | |
id: tag-data | |
run: | | |
{ | |
echo 'annotation <<EOF' | |
git for-each-ref "${GITHUB_REF}" --format '%(contents)' | |
echo 'EOF' | |
} >> "${GITHUB_OUTPUT}" | |
- name: Build release | |
run: ./build_release_linux.sh "${{ github.ref_name }}" | |
- name: Publish release | |
uses: softprops/action-gh-release@v2 | |
with: | |
make_latest: true | |
body: ${{ steps.tag-data.outputs.annotation }} | |
files: dist/* | |
build_macos: | |
name: Build and upload ${{ github.ref_name }} (MacOS) | |
runs-on: macos-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Get annotation | |
id: tag-data | |
run: | | |
{ | |
echo 'annotation <<EOF' | |
git for-each-ref "${GITHUB_REF}" --format '%(contents)' | |
echo 'EOF' | |
} >> "${GITHUB_OUTPUT}" | |
- name: Build release | |
run: ./build_release_macos.sh "${{ github.ref_name }}" | |
- name: Publish release | |
uses: softprops/action-gh-release@v2 | |
with: | |
make_latest: true | |
body: ${{ steps.tag-data.outputs.annotation }} | |
files: dist/* |