Skip to content

🔖 bump version

🔖 bump version #312

Workflow file for this run

name: Release
on:
push:
branches:
- main
tags:
- "v*"
- "rc*"
- "beta*"
- "alpha*"
env:
CARGO_TERM_COLOR: always
IS_DRAFT: ${{ startsWith(github.ref_name, 'beta') || startsWith(github.ref_name, 'alpha') }}
IS_PRERELEASE: ${{ startsWith(github.ref_name, 'rc') }}
IS_RELEASE: ${{ startsWith(github.ref_name, 'v') }}
BIN-NAME: Audioware-windows-latest-${{ github.ref_name }}
CARGO_NET_GIT_FETCH_WITH_CLI: true
jobs:
gaming:
uses: ./.github/workflows/bundle.yml
with:
tag: ${{ github.ref_name }}
release: true
modding:
uses: ./.github/workflows/bundle.yml
with:
tag: ${{ github.ref_name }}
release: false
release:
if: ${{ startsWith(github.event.ref, 'refs/tags') }}
runs-on: windows-2019
needs: [gaming, modding]
steps:
- name: Download artifact
uses: actions/download-artifact@v4
with:
path: release
merge-multiple: true
- name: Create release ${{ github.ref_name }}
uses: ncipollo/release-action@v1
with:
artifacts: "release/${{ env.BIN-NAME }}.zip,release/${{ env.BIN-NAME }}-DEV_ONLY.zip,release/checksum.txt,release/checksum-DEV_ONLY.txt"
draft: ${{ env.IS_DRAFT }}
prerelease: ${{ env.IS_PRERELEASE }}
token: ${{ secrets.GITHUB_TOKEN }}
artifactErrorsFailBuild: true