-
Notifications
You must be signed in to change notification settings - Fork 0
66 lines (51 loc) · 1.84 KB
/
build_zip.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# This workflow will build a package using Maven and then publish it to GitHub packages when a release is created
# For more information see: https://github.com/actions/setup-java/blob/main/docs/advanced-usage.md#apache-maven-with-a-settings-path
name: Build Zip
on: push
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Install dependencies
run: sudo apt-get install zip unzip
- uses: robinraju/release-downloader@v1
with:
repository: freshautomations/stoml
latest: true
fileName: stoml_linux_amd64
- name: Ensure ~/.local/bin exists
run: mkdir -p ~/.local/bin
- run: mv stoml_linux_amd64 ~/.local/bin/stoml && chmod +x ~/.local/bin/stoml
- name: Download packwiz artifact
uses: dawidd6/action-download-artifact@v5
with:
repo: packwiz/packwiz
run_id: 11331794723
name: Linux 64-bit x86
skip_unpack: true
- name: Unzip packwiz
run: unzip "Linux 64-bit x86.zip" -d ~/.local/bin
- name: Include ~/.local/bin in path
run: echo "${HOME}/.local/bin" >> $GITHUB_PATH
- name: Remove unnecessary artifact
run: rm "Linux 64-bit x86.zip"
- name: Checkout the repo.
uses: actions/checkout@v4
- name: Get modpack version
uses: mathiasvr/[email protected]
id: version
with:
run: stoml pack.toml version
- name: build zip
run: packwiz curseforge export
- name: Workaround for Github odd behavior
run: mkdir ~/dist && unzip "*.zip" -d ~/dist
- name: upload artifact
uses: actions/upload-artifact@v4
with:
name: "Vestiges_of_Tomorrow_v${{ steps.version.outputs.stdout }}"
path: ~/dist
retention-days: 90