Skip to content

Commit 69d0ecc

Browse files
refaimclaude
andcommitted
Publish GitHub releases on push to master, build on PRs
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent e907364 commit 69d0ecc

2 files changed

Lines changed: 36 additions & 11 deletions

File tree

.github/workflows/package.yml

Lines changed: 34 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,26 @@
1-
name: Package
1+
name: Build
22

33
on:
44
push:
55
branches: [master]
66
pull_request:
77
branches: [master]
8-
schedule:
9-
- cron: '0 0 * * 0'
8+
9+
permissions:
10+
contents: write
1011

1112
jobs:
12-
package:
13+
build:
1314
runs-on: windows-latest
1415
steps:
1516
- name: Checkout
16-
uses: actions/checkout@v3
17+
uses: actions/checkout@v4
1718

1819
- name: Install uv
1920
uses: astral-sh/setup-uv@v5
2021

2122
- name: Setup Python
22-
uses: actions/setup-python@v4
23+
uses: actions/setup-python@v5
2324
with:
2425
python-version: '3.10'
2526
architecture: x64
@@ -28,7 +29,7 @@ jobs:
2829
run: uv sync
2930

3031
- name: Cache Nuitka
31-
uses: actions/cache@v3
32+
uses: actions/cache@v4
3233
with:
3334
path: |
3435
~\AppData\Local\Nuitka
@@ -40,8 +41,32 @@ jobs:
4041
New-Item -ItemType directory -Name snapjaw\snapjaw -Path build
4142
Get-Item -Path build\snapjaw.dist\* | Move-Item -Destination build\snapjaw\snapjaw
4243
43-
- name: Upload
44+
- name: Package
45+
run: Compress-Archive -Path build\snapjaw\* -DestinationPath snapjaw.zip
46+
47+
- name: Upload artifact
4448
uses: actions/upload-artifact@v4
4549
with:
4650
name: snapjaw
47-
path: build\snapjaw\
51+
path: snapjaw.zip
52+
53+
release:
54+
needs: build
55+
if: github.event_name == 'push'
56+
runs-on: ubuntu-latest
57+
steps:
58+
- name: Download artifact
59+
uses: actions/download-artifact@v4
60+
with:
61+
name: snapjaw
62+
63+
- name: Get date
64+
id: date
65+
run: echo "date=$(date +%Y.%m.%d)" >> "$GITHUB_OUTPUT"
66+
67+
- name: Release
68+
uses: softprops/action-gh-release@v2
69+
with:
70+
tag_name: ${{ steps.date.outputs.date }}.${{ github.run_number }}
71+
name: ${{ steps.date.outputs.date }}.${{ github.run_number }}
72+
files: snapjaw.zip

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
- Simple command line interface
1010

1111
## How to install
12-
- [Download snapjaw](https://nightly.link/refaim/snapjaw/workflows/package/master/snapjaw.zip)
12+
- [Download snapjaw](https://github.com/refaim/snapjaw/releases/latest)
1313
- Extract the archive into the WoW folder. This will create a structure similar to `C:\Games\WoW\snapjaw\snapjaw.exe`. Alternatively, if you choose a different destination, you'll need to specify the path to the addons directory using the `--addons-dir` argument.
1414
- See usage examples or run `snapjaw.exe --help`
1515

@@ -71,4 +71,4 @@ snapjaw update ShaguTweaks
7171

7272
## Requirements for developers
7373
- [Python 3.10](https://www.python.org)
74-
- [poetry](https://python-poetry.org)
74+
- [uv](https://docs.astral.sh/uv/)

0 commit comments

Comments
 (0)