Skip to content

ci: add build artifacts to semantic release #1

ci: add build artifacts to semantic release

ci: add build artifacts to semantic release #1

Workflow file for this run

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

View workflow run for this annotation

GitHub Actions / .github/workflows/pre-release.yaml

Invalid workflow file

error parsing called workflow ".github/workflows/pre-release.yaml" -> "./.github/workflows/build.yaml" : failed to fetch workflow: workflow was not found.
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}" },
]