-
Notifications
You must be signed in to change notification settings - Fork 0
84 lines (70 loc) · 2.33 KB
/
push_commit.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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
name: Push Commit
on:
push:
jobs:
upload-packs:
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Get short git commit SHA
id: vars
run: |
calculatedSha=$(git rev-parse --short ${{ github.sha }})
echo "COMMIT_SHORT_SHA=$calculatedSha" >> $GITHUB_ENV
- name: Mrpack neo/1.21
uses: vimtor/[email protected]
with:
files: modrinth/neo/1.21
dest: OptimumFuse ${{ env.COMMIT_SHORT_SHA }}+neo.1.21.mrpack
- name: Mrpack neo/1.21.1
uses: vimtor/[email protected]
with:
files: modrinth/neo/1.21.1
dest: OptimumFuse ${{ env.COMMIT_SHORT_SHA }}+neo.1.21.1.mrpack
- name: Mrpack fabric/1.21
uses: vimtor/[email protected]
with:
files: modrinth/fabric/1.21
dest: OptimumFuse ${{ env.COMMIT_SHORT_SHA }}+fabric.1.21.mrpack
- name: Mrpack fabric/1.21.1
uses: vimtor/[email protected]
with:
files: modrinth/fabric/1.21.1
dest: OptimumFuse ${{ env.COMMIT_SHORT_SHA }}+fabric.1.21.1.mrpack
- name: Zip neo/1.21
uses: vimtor/[email protected]
with:
files: curseforge/neo/1.21
dest: OptimumFuse ${{ env.COMMIT_SHORT_SHA }}+neo.1.21.zip
- name: Zip fabric/1.21
uses: vimtor/[email protected]
with:
files: curseforge/fabric/1.21
dest: OptimumFuse ${{ env.COMMIT_SHORT_SHA }}+fabric.1.21.zip
- name: Zip fabric/1.21.1
uses: vimtor/[email protected]
with:
files: curseforge/fabric/1.21.1
dest: OptimumFuse ${{ env.COMMIT_SHORT_SHA }}+fabric.1.21.1.zip
- name: Upload Mrpacks to Github
uses: actions/upload-artifact@v4
with:
name: Modrinth Releases
path: ${{ github.workspace }}/*.mrpack
- name: Upload Zips to Github
uses: actions/upload-artifact@v4
with:
name: Curseforge Releases
path: ${{ github.workspace }}/*.zip
modrinth-desc:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v4
- uses: funnyboy-roks/[email protected]
with:
auth-token: ${{ secrets.MODRINTH_TOKEN }}
slug: 'optimum-fuse'