-
Notifications
You must be signed in to change notification settings - Fork 171
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e9474dd
commit f6f1833
Showing
9 changed files
with
151 additions
and
104 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: Release with artifacts | ||
|
||
inputs: | ||
is-prerelease: | ||
required: true | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
- 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: ${{ inputs.is-prerelease }} | ||
prerelease_tag: nightly | ||
gh-publish: true | ||
gh-draft-release: ${{ !inputs.is-prerelease }} | ||
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}" | ||
} | ||
] |
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: Build | ||
|
||
on: | ||
workflow_call: | ||
pull_request: | ||
types: [opened, synchronize, reopened] | ||
|
||
jobs: | ||
build: | ||
runs-on: windows-latest | ||
strategy: | ||
matrix: | ||
runtime: [win-x64, win-x86] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: actions/setup-dotnet@v3 | ||
with: | ||
dotnet-version: 7.x | ||
|
||
- run: > | ||
dotnet publish GlazeWM.App/GlazeWM.App.csproj | ||
--configuration Release | ||
--runtime ${{ matrix.runtime }} | ||
--output GlazeWM.App/publish/ | ||
--self-contained | ||
-p:PublishSingleFile=true | ||
-p:IncludeAllContentForSelfExtract=true | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: glazewm-${{ matrix.runtime }}-${{ github.sha }} | ||
path: GlazeWM.App/publish/GlazeWM.exe | ||
if-no-files-found: error |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
name: Lint check | ||
|
||
on: push | ||
|
||
jobs: | ||
lint-check: | ||
runs-on: windows-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: actions/setup-dotnet@v3 | ||
with: | ||
dotnet-version: 7.x | ||
|
||
- run: dotnet format --verify-no-changes |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
name: PR title check | ||
|
||
on: | ||
pull_request: | ||
types: [opened, edited, synchronize, reopened] | ||
|
||
jobs: | ||
pr-title-check: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: glzr-io/actions/semantic-prs@main | ||
with: | ||
gh-token: ${{ secrets.GITHUB_TOKEN }} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: Pre-release | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
|
||
permissions: | ||
contents: write | ||
issues: write | ||
pull-requests: write | ||
|
||
jobs: | ||
build: | ||
uses: ./.github/workflows/build.yaml | ||
|
||
pre-release: | ||
needs: build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- uses: ./.github/actions/release-with-artifacts | ||
with: | ||
is-prerelease: true |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: Release | ||
|
||
on: workflow_dispatch | ||
|
||
permissions: | ||
contents: write | ||
issues: write | ||
pull-requests: write | ||
|
||
jobs: | ||
build: | ||
uses: ./.github/workflows/build.yaml | ||
|
||
pre-release: | ||
needs: build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- uses: ./.github/actions/release-with-artifacts | ||
with: | ||
is-prerelease: false |