-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (36 loc) · 1.33 KB
/
publish.yaml
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
name: Publish Mod
# Run when a new release is... released
on:
release:
types: [published]
workflow_dispatch:
jobs:
publish:
runs-on: ubuntu-latest
steps:
# Use checkout to publish the files in your repo
- uses: actions/checkout@v4
- uses: vimtor/[email protected]
with:
files: vanilla-plus/
dest: modpack.zip
- name: Extract name from manifest
uses: sergeysova/jq-action@v2
id: extract_modpack_name
with:
cmd: 'jq .name vanilla-plus/base-pack/manifest.json -r'
- name: Save modpack name in github output
id: get_modpack_name
run: echo "name=${{ steps.extract_modpack_name.outputs.value }}" >> $GITHUB_OUTPUT
- uses: GreenTF/[email protected]
with:
namespace: Beeheim # the thunderstore 'team' to publish under
description: ${{ github.event.release.body }}
token: ${{ secrets.THUNDERSTORE_TOKEN }}
name: ${{ steps.get_modpack_name.outputs.name }} # the name of the package
version: ${{ github.ref_name }} # Use the tag as the package version
community: Valheim # the game the package is for
# repo: valheim.thunderstore.io
file: modpack.zip
categories: | # <-- notice this pipe character
modpacks