Skip to content

Commit 667900a

Browse files
committed
Automatically make track file presets
1 parent e8ab529 commit 667900a

2 files changed

Lines changed: 20 additions & 2 deletions

File tree

.github/workflows/build.yml

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,26 @@ jobs:
4141
path: out/${{ matrix.output }}
4242
retention-days: 30
4343

44+
create-track-zip:
45+
name: Create Preset Track collections
46+
runs-on: ubuntu-latest
47+
steps:
48+
- uses: actions/checkout@v4
49+
- name: Create official tracks zip
50+
run: zip -r official.zip tracks/official/*
51+
- name: Create community tracks zip
52+
run: zip -r community.zip tracks/community/*
53+
- name: Upload track zips
54+
uses: actions/upload-artifact@v4
55+
with:
56+
name: track-zips
57+
path: |
58+
official.zip
59+
community.zip
60+
4461
release:
4562
name: Create Release
46-
needs: build
63+
needs: [build, create-track-zip]
4764
runs-on: ubuntu-latest
4865
if: startsWith(github.ref, 'refs/tags/')
4966
permissions:
@@ -60,6 +77,7 @@ jobs:
6077
run: |
6178
mkdir -p release
6279
find artifacts -type f -exec mv {} release/ \;
80+
mv official.zip community.zip release
6381
6482
- name: Create Release
6583
uses: softprops/action-gh-release@v1

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ If the right binary for your system is not there, you can also build the server
1111
### Tracks
1212
The server looks for tracks inside the `tracks` folder inside the working directory in the form of `.track` files. `.track` files are just raw text files containing a track code
1313

14-
You can download the `.track` files for the official and community tracks from https://github.com/polytrackmods/polyserver-go/tree/main/tracks
14+
You can grab the .track files for the official and community tracks from the releases page
1515

1616
In the end, the folder structure should look something like this:
1717
```

0 commit comments

Comments
 (0)