-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (32 loc) · 983 Bytes
/
release.yml
File metadata and controls
33 lines (32 loc) · 983 Bytes
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
name: Release
on:
workflow_dispatch:
inputs:
version:
type: string
description: Modpack Version
required: true
jobs:
run_mrpack_distributor:
runs-on: ubuntu-latest
name: Release Test
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 mrpack-distributor from git repository
uses: baptiste0928/cargo-install@v2
with:
crate: mrpack-distributor
git: https://github.com/LilydevMC/mrpack-distributor
branch: main
- name: Checkout Repository Files
uses: actions/checkout@v4
- name: Run release
run: mrpack-distributor run -dv ${{ github.event.inputs.version }}