Skip to content

Commit

Permalink
Update build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Prince527GitHub authored Oct 13, 2024
1 parent dd34bd9 commit 6f72692
Showing 1 changed file with 17 additions and 5 deletions.
22 changes: 17 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,26 @@
name: Build KMonad

on:
push:
branches: ['build']
schedule:
- cron: '0 12 1 */6 *'
workflow_dispatch:
inputs:
version:
description: Version tag to build.
required: true

permissions:
packages: write
contents: write

jobs:
build:
runs-on: windows-latest

steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: kmonad/kmonad
ref: ${{ inputs.version }}

- name: Install Scoop
shell: pwsh
Expand All @@ -40,3 +45,10 @@ jobs:
with:
name: kmonad-executable
path: ${{ env.APPDATA_DIR }}\local\bin\

- name: Upload KMonad artifact
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ inputs.version }}
make_latest: true
files: ${{ env.APPDATA_DIR }}\local\bin\

0 comments on commit 6f72692

Please sign in to comment.