-
Notifications
You must be signed in to change notification settings - Fork 5
42 lines (42 loc) · 1.19 KB
/
pipeline.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: 发布包
run-name: ${{ github.actor }} 正在发布新版本🚀
on:
push:
branches:
- release-*
jobs:
Release:
runs-on: ubuntu-latest
name: 发布🚀
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: 安装 Packwiz
id: download-artifact
uses: actions/download-artifact@v4
with:
pattern: "Linux 64-bit x86"
github-token: ${{ secrets.GITHUB_TOKEN }} # token with actions:read permissions on target repo
repository: packwiz/packwiz
run-id: 11331794723
- name: List files in the repository
run: |
ls -r ${{ github.workspace }}
- name: 解压
run: |
unzip "Linux 64-bit x86.zip"
chomd +x packwiz
- name: 检测并生成mods meta信息
run: |
./packwiz curseforge detect
- name: 更新index
run: |
./packwiz refresh
- name: 生成curseforge包
run: |
./packwiz curseforge export
- name: 上传包
uses: actions/upload-artifact@v3
with:
path: ./*.zip
- run: echo "🍏 This job's status is ${{ job.status }}."