Skip to content

Commit

Permalink
ci: add build artifacts to semantic release
Browse files Browse the repository at this point in the history
  • Loading branch information
lars-berger committed Dec 28, 2023
1 parent e8c2d8f commit 7a6bcc1
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
name: Build

on:
# TODO: Remove temp ci branch.
push:
# TODO: Remove temp ci branch.
branches: [main, ci/overhaul-github-workflows]
workflow_call:
pull_request:
types: [opened, synchronize, reopened]

Expand Down
29 changes: 27 additions & 2 deletions .github/workflows/pre-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,44 @@ name: Pre-release

on:
push:
branches: [main]
branches: [main, ci/overhaul-github-workflows]

permissions:
contents: write
issues: write
pull-requests: write

jobs:
build:
uses: ./.github/workflows/build.yaml

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:
Expand All @@ -26,4 +48,7 @@ jobs:
gh_publish: true
gh_token: ${{ secrets.GITHUB_TOKEN }}
gh_assets: |
TODO
[
{ "path": "artifacts/win-x64", "name": "GlazeWM_x64_${nextRelease.gitTag}" },
{ "path": "artifacts/win-x86", "name": "GlazeWM_x86_${nextRelease.gitTag}" },
]

0 comments on commit 7a6bcc1

Please sign in to comment.