-
Notifications
You must be signed in to change notification settings - Fork 1
78 lines (76 loc) · 2.86 KB
/
Release.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
name: Release
on: workflow_dispatch
jobs:
prepare_release:
name: Prepare Release
runs-on: ubuntu-latest
outputs:
release_id: ${{ steps.create_release.outputs.id }}
upload_url: ${{ steps.create_release.outputs.upload_url }}
steps:
- name: Create Release Draft
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: v${{ github.run_number }}
release_name: Release ${{ github.run_number }}
draft: true
publish_labPbr:
name: Publish LabPbr
runs-on: ubuntu-latest
needs: [prepare_release]
steps:
- uses: actions/checkout@v2
- name: Compile LabPBR
uses: null511/PixelGraph.GitHubAction@main
with:
project: src/project.yml
profile: Create LabPBR
zip: Create-LabPBR-v${{ github.run_number }}.zip
- name: Release LabPBR
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.prepare_release.outputs.upload_url }}
asset_path: ./Create-LabPBR-v${{ github.run_number }}.zip
asset_name: Create-LabPBR-v${{ github.run_number }}.zip
asset_content_type: application/zip
- name: Compile LabPBR WoodTracks
uses: null511/PixelGraph.GitHubAction@main
with:
project: src-wood-track/project.yml
profile: Create LabPBR Wood Tracks
zip: Create-LabPBR-WoodTracks-v${{ github.run_number }}.zip
- name: Release LabPBR-WoodTracks
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.prepare_release.outputs.upload_url }}
asset_path: ./Create-LabPBR-WoodTracks-v${{ github.run_number }}.zip
asset_name: Create-LabPBR-WoodTracks-v${{ github.run_number }}.zip
asset_content_type: application/zip
- name: Publish to CurseForge, Modrinth
uses: Kir-Antipov/[email protected]
with:
name: Create-LabPBR v${{ github.run_number }}
version: v${{ github.run_number }}
version-type: beta
changelog: "###Release v${{ github.run_number }}"
modrinth-token: ${{ secrets.MODRINTH_TOKEN }}
modrinth-id: CFeoJnHX
modrinth-featured: true
modrinth-files-primary: Create-LabPBR-v${{ github.run_number }}.zip
modrinth-files-secondary: Create-LabPBR-WoodTracks-v${{ github.run_number }}.zip
curseforge-token: ${{ secrets.CF_API_TOKEN }}
curseforge-id: 682954
loaders: |
fabric
forge
quilt
files: |
Create-LabPBR-v${{ github.run_number }}.zip
Create-LabPBR-WoodTracks-v${{ github.run_number }}.zip