-
Notifications
You must be signed in to change notification settings - Fork 2
48 lines (43 loc) · 1.43 KB
/
latest.yml
File metadata and controls
48 lines (43 loc) · 1.43 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
name: Publish on platforms (latest)
on:
# Triggers the action when a release is published
release:
types: [ published ]
branches: [ "main" ]
workflow_dispatch:
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 Modrinth
- name: Upload to Modrinth
uses: RubixDev/modrinth-upload@v1.0.0
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