-
-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (36 loc) · 1.16 KB
/
release.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
name: Release
on:
workflow_dispatch:
inputs:
version:
type: string
description: Modpack Version
required: true
jobs:
release:
runs-on: ubuntu-latest
name: Release on Modrinth & GitHub Releases
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }}
WEBHOOK_URL: ${{ secrets.WEBHOOK_URL }}
steps:
- name: Install packwiz
uses: actions/setup-go@v4.1.0
with:
go-version: "1.21.3"
- run: go install github.com/packwiz/packwiz@latest
- name: Install Peony from git repository
uses: baptiste0928/cargo-install@v2
with:
crate: peony
git: https://github.com/LilydevMC/peony
tag: 0.2.0-223e662
- name: Checkout Repository Files
uses: actions/checkout@v4
- name: Export fixes resource pack
run: chmod +x ./scripts/export_resource_pack.sh && ./scripts/export_resource_pack.sh
- name: Clean up fixes resource pack
uses: rm -r ./resourcepacks/mission-to-mars-fixes
- name: Create Release
run: peony modpack -dv ${{ github.event.inputs.version }}