Skip to content

Commit

Permalink
ci: releases on workflow dispatch (#529)
Browse files Browse the repository at this point in the history
  • Loading branch information
lars-berger committed Feb 1, 2024
1 parent c0bfabb commit 33c8a38
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 68 deletions.
39 changes: 0 additions & 39 deletions .github/actions/release-with-artifacts/action.yaml

This file was deleted.

26 changes: 0 additions & 26 deletions .github/workflows/pre-release.yaml

This file was deleted.

40 changes: 37 additions & 3 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,21 @@
name: Release

on: workflow_dispatch
on:
workflow_dispatch:
inputs:
draft-release:
type: boolean
default: false
description: Whether to publish the release as a draft.

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

concurrency:
group: release

jobs:
build:
uses: ./.github/workflows/build.yaml
Expand All @@ -19,6 +28,31 @@ jobs:
with:
fetch-depth: 0

- uses: ./.github/actions/release-with-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

- uses: glzr-io/actions/semantic-release@main
with:
is-prerelease: false
gh-publish: true
gh-draft-release: ${{ inputs.draft-release }}
gh-token: ${{ github.token }}
gh-assets: |
[
{
"path": "artifacts/win-x64/GlazeWM.exe",
"name": "GlazeWM_x64_${nextRelease.gitTag}"
},
{
"path": "artifacts/win-x86/GlazeWM.exe",
"name": "GlazeWM_x86_${nextRelease.gitTag}"
}
]

0 comments on commit 33c8a38

Please sign in to comment.