This repository was archived by the owner on Mar 7, 2026. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaction.yml
More file actions
executable file
·116 lines (94 loc) · 2.85 KB
/
action.yml
File metadata and controls
executable file
·116 lines (94 loc) · 2.85 KB
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
name: 'Minecraft-Packr'
description: 'Generate and Share Minecraft Resource Packs'
author: 'Sindercube'
inputs:
filename:
description: 'What YAML file to generate the pack from.'
release-name:
description: "The name of the release"
default: 'New Release'
required: false
release-version:
description: "The version of the release"
default: ''
required: false
changelog:
description: "The changelog for the release"
default: ''
required: false
prerelease:
description: "Whether the release is an early, preview release"
default: 'false'
required: false
github-repo:
description: "The GitHub repository to publish the release to"
default: ""
required: false
modrinth-id:
description: "The Modrinth project ID to publish the release to"
default: ""
required: false
curseforge-id:
description: "The Curseforge project ID to publish the release to"
default: ""
required: false
github-token:
description: "The GitHub access token used to publish the release"
default: ""
required: false
modrinth-token:
description: "The Modrinth access token used to publish the release"
default: ""
required: false
curseforge-token:
description: "The Curseforge access token used to publish the release"
default: ""
required: false
#outputs:
#
# hash:
# description: 'The SHA-1 hash of the pack'
# value: "${{ steps.packr.outputs.hash }}"
#
# size:
# description: 'The file size of the pack (in bytes)'
# value: "${{ steps.packr.outputs.size }}"
branding:
icon: "folder-plus"
color: "blue"
runs:
using: "composite"
steps:
- uses: actions/checkout@v3
with:
token: '${{ github.token }}'
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Install Packr
shell: bash
run: pip install git+https://github.com/sindercube/packr
- name: Run Packr
shell: bash
run: |
python -m packr \
\
-f "${{ inputs.filename }}" \
-p "${{ inputs.parts }}" \
-d "${{ inputs.output-directory }}" \
-of ${{ inputs.optimize-files }} \
\
-rn "${{ inputs.release-name }}" \
-rv ${{ inputs.release-version }} \
-ch "${{ inputs.changelog }}" \
-pr "${{ inputs.prerelease }}" \
-mv "${{ inputs.minecraft-versions }}" \
\
-gr ${{ inputs.github-repo }} \
-mi ${{ inputs.modrinth-id }} \
-ci ${{ inputs.curseforge-id }} \
\
--github-token ${{ inputs.github-token }} \
--modrinth-token ${{ inputs.modrinth-token }} \
--curseforge-token ${{ inputs.curseforge-token }}