-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (36 loc) · 1009 Bytes
/
nightlybuild.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: Nightly Build
on:
push:
paths:
- "pack/**"
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./pack
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "1.23.3"
cache: false
- name: Install packwiz
run: go install github.com/packwiz/packwiz@latest
- name: Export pack
id: export
run: |
packwiz curseforge export
echo "PACK_NAME=$(ls *.zip | sed 's/.zip$//')" >> $GITHUB_ENV
echo "SHORT_SHA=$(git rev-parse --short HEAD)" >> $GITHUB_ENV
- name: Create temp directory and unzip
run: |
mkdir -p unzipped
unzip "${{ env.PACK_NAME }}.zip" -d unzipped/
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: ${{ env.PACK_NAME }}-${{ env.SHORT_SHA }}
path: pack/unzipped/