[EXPAND] [[messages]] messageTitle = "QB Update for GT 2.8 (#681)" messageBody = """ [QB] [DETAILS] details = ["Fixes many Quest Book issues", "Updates QB with changes in GT 2.8"] [DETAILS] """ [[messages]] messageTitle = "Buildscript Refactor (#681)" messageBody = """ [INTERNAL] [DETAILS] details = ["**Important: Buildscript has changed from `npx gulp...` or `gulp...` to `npm run gulp...`**!", "Moves to Node 16 Package Management + Typescript Strict Mode", "New Port QB, Check QB and Fix QB Tasks"] [DETAILS] """ [EXPAND] Co-authored-by: Integer Limit <103940576+IntegerLimit@users.noreply.github.com> Co-authored-by: Ghzdude <44148655+ghzdude@users.noreply.github.com> Co-authored-by: SparkedTheorem <162088357+SparkedTheorem@users.noreply.github.com>
80 lines
2.3 KiB
YAML
80 lines
2.3 KiB
YAML
name: "[NOT CALLABLE] Deploy To Github Releases"
|
|
|
|
on:
|
|
workflow_call:
|
|
inputs:
|
|
tag:
|
|
description: The Release Tag.
|
|
required: true
|
|
type: string
|
|
release_type:
|
|
description: The Release Type. This is the formatted version.
|
|
required: true
|
|
type: string
|
|
|
|
jobs:
|
|
deployGH:
|
|
name: Deploy to GitHub Releases (${{ inputs.tag }})
|
|
runs-on: ubuntu-latest
|
|
env:
|
|
GITHUB_TAG: ${{ inputs.tag }}
|
|
steps:
|
|
- name: Get Token
|
|
id: token
|
|
uses: actions/create-github-app-token@v1
|
|
with:
|
|
app-id: ${{ secrets.APP_ID }}
|
|
private-key: ${{ secrets.APP_KEY }}
|
|
owner: Nomi-CEu
|
|
|
|
- name: Checkout Tag
|
|
uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0
|
|
ref: ${{ inputs.tag }}
|
|
|
|
- name: Restore NPM Cached Files
|
|
uses: actions/cache@v4
|
|
id: npm-cache
|
|
with:
|
|
path: |
|
|
~/.npm
|
|
./tools/node_modules
|
|
key: ${{ runner.os }}-npm-${{ hashFiles('./tools/package-lock.json') }}
|
|
restore-keys: ${{ runner.os }}-npm-
|
|
|
|
- name: Setup NodeJS v20
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 20
|
|
check-latest: true
|
|
|
|
- name: Setup NPM Packages
|
|
if: steps.npm-cache.outputs.cache-hit != 'true'
|
|
working-directory: ./tools
|
|
run: npm ci
|
|
|
|
- name: Check Environmental Variables
|
|
working-directory: ./tools
|
|
run: npm run gulp check
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
CURSEFORGE_PROJECT_ID: ${{ secrets.CURSEFORGE_PROJECT_ID }}
|
|
CURSEFORGE_API_TOKEN: ${{ secrets.CURSEFORGE_API_TOKEN }}
|
|
CFCORE_API_TOKEN: ${{ secrets.CFCORE_API_TOKEN }}
|
|
|
|
- name: Download Built Artifacts
|
|
uses: actions/download-artifact@v4
|
|
with:
|
|
name: Built Pack
|
|
path: ./build/
|
|
|
|
- name: Deploy to GitHub Releases
|
|
env:
|
|
GITHUB_TOKEN: ${{ steps.token.outputs.token }}
|
|
CURSEFORGE_PROJECT_ID: ${{ secrets.CURSEFORGE_PROJECT_ID }}
|
|
CURSEFORGE_API_TOKEN: ${{ secrets.CURSEFORGE_API_TOKEN }}
|
|
RELEASE_TYPE: ${{ inputs.release_type }}
|
|
working-directory: ./tools
|
|
run: npm run gulp deployReleases
|