-
Notifications
You must be signed in to change notification settings - Fork 2
58 lines (52 loc) · 1.81 KB
/
latest.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
name: Publish on platforms (latest)
on:
# Triggers the action when a release is published
release:
types: [ published ]
branches: [ "main" ]
jobs:
publish:
name: Publish latest versions
runs-on: ubuntu-latest
steps:
# Get the source code
- uses: actions/checkout@v3
# Package the resource pack nicely
- name: Run the resource pack packager
run: |
cd $GITHUB_WORKSPACE
python3 distribute.py --min 15
# Upload the new release on Curseforge
- name: "Upload to CurseForge"
uses: itsmeow/curseforge-upload@v3
with:
token: "${{ secrets.CF_API_TOKEN }}"
file_path: "./ComputerCreate.zip"
game_endpoint: "minecraft"
project_id: "603936"
changelog: ${{ github.event.release.body }}
game_versions: "Minecraft 1.20.1"
# Upload the new release on Modrinth
- name: Upload to Modrinth
uses: RubixDev/[email protected]
with:
token: ${{ secrets.MODRINTH_TOKEN }}
file_path: ./ComputerCreate.zip
name: ComputerCreate ${{ github.event.release.tag_name }}
version: ${{ github.event.release.tag_name }}
changelog: ${{ github.event.release.body }}
game_versions: "1.20"
release_type: release
featured: true
project_id: KqGEAQeu
loaders: minecraft
# Upload the package on the release
- name: Upload to the GitHub release
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ./ComputerCreate.zip
asset_name: ComputerCreate.zip
asset_content_type: application/gzip