ci: add build artifacts to semantic release #1
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
name: Pre-release | ||
on: | ||
push: | ||
branches: [main, ci/overhaul-github-workflows] | ||
permissions: | ||
contents: write | ||
issues: write | ||
pull-requests: write | ||
jobs: | ||
build: | ||
uses: ./.github/workflows/build.yaml | ||
Check failure on line 14 in .github/workflows/pre-release.yaml GitHub Actions / .github/workflows/pre-release.yamlInvalid workflow file
|
||
pre-release: | ||
needs: build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
# - name: Download artifacts | ||
# uses: actions/download-artifact@v4 | ||
# with: | ||
# name: glazewm-*-${{ github.sha }} | ||
# path: artifacts | ||
- name: Download artifacts (win-x64) | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: glazewm-win-x64-${{ github.sha }} | ||
path: artifacts/win-x64 | ||
- name: Download artifacts (win-x86) | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: glazewm-win-x86-${{ github.sha }} | ||
path: artifacts/win-x86 | ||
- name: Semantic release | ||
uses: glzr-io/actions/semantic-release@main | ||
with: | ||
is_prerelease: true | ||
repository_url: "github.com:glzr-io/glazewm.git" | ||
gh_publish: true | ||
gh_token: ${{ secrets.GITHUB_TOKEN }} | ||
gh_assets: | | ||
[ | ||
{ "path": "artifacts/win-x64", "name": "GlazeWM_x64_${nextRelease.gitTag}" }, | ||
{ "path": "artifacts/win-x86", "name": "GlazeWM_x86_${nextRelease.gitTag}" }, | ||
] |