forked from JsMacros/JsMacros
-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (48 loc) · 1.59 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
# This is a basic workflow to help you get started with Actions
name: Build Release V2
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
release:
types: [ created ]
jobs:
build_latest:
needs: [build_backports, build_backports_neo]
uses: jsmacros/jsmacros/.github/workflows/releasebuild.yml@main
with:
branch: main
GITHUB_REF: ${{ github.ref }}
upload_docs: true
forge: neoforge
secrets:
CF_API_KEY: ${{ secrets.CF_API_KEY }}
MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }}
PYPI_API_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
build_backports_neo:
strategy:
matrix:
branch: [ 'backports/1.20.2', 'backports/1.20.4' ]
uses: jsmacros/jsmacros/.github/workflows/releasebuild.yml@main
with:
branch: ${{ matrix.branch }}
GITHUB_REF: ${{ github.ref }}
upload_docs: false
forge: neoforge
secrets:
CF_API_KEY: ${{ secrets.CF_API_KEY }}
MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }}
PYPI_API_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
build_backports:
strategy:
matrix:
branch: [ 'backports/1.17.1', 'backports/1.18.2', 'backports/1.19.4', 'backports/1.20.1' ]
uses: jsmacros/jsmacros/.github/workflows/releasebuild.yml@main
with:
branch: ${{ matrix.branch }}
GITHUB_REF: ${{ github.ref }}
upload_docs: false
forge: forge
secrets:
CF_API_KEY: ${{ secrets.CF_API_KEY }}
MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }}
PYPI_API_TOKEN: ${{ secrets.PYPI_API_TOKEN }}