feat: better cx support with d3dm #76
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Build Latest (when new tag created)" | |
on: | |
push: | |
tags: | |
- '*' | |
env: | |
YAAGL_VERSION: ${{ github.ref_name }} | |
permissions: | |
contents: "write" | |
packages: "write" | |
pull-requests: "read" | |
jobs: | |
build: | |
runs-on: macos-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Install Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
- uses: pnpm/action-setup@v2 | |
name: Install pnpm | |
id: pnpm-install | |
with: | |
version: 7 | |
run_install: false | |
- name: Get pnpm store directory | |
id: pnpm-cache | |
shell: bash | |
run: | | |
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT | |
- uses: actions/cache@v3 | |
name: Setup pnpm cache | |
with: | |
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }} | |
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} | |
restore-keys: | | |
${{ runner.os }}-pnpm-store- | |
- name: Install dependencies | |
run: pnpm install | |
- name: Build app | |
run: | | |
./configure.sh | |
YAAGL_CHANNEL_CLIENT=hk4ecn node ./build-app.js | |
cp dist/Yaagl/resources.neu resources_hk4ecn.neu | |
YAAGL_CHANNEL_CLIENT=hk4eos node ./build-app.js | |
cp dist/Yaagl/resources.neu resources_hk4eos.neu | |
YAAGL_CHANNEL_CLIENT=bh3glb node ./build-app.js | |
cp dist/Yaagl/resources.neu resources_bh3glb.neu | |
YAAGL_CHANNEL_CLIENT=hkrpgcn node ./build-app.js | |
cp dist/Yaagl/resources.neu resources_hkrpgcn.neu | |
YAAGL_CHANNEL_CLIENT=hkrpgos node ./build-app.js | |
cp dist/Yaagl/resources.neu resources_hkrpgos.neu | |
YAAGL_CHANNEL_CLIENT=napcn node ./build-app.js | |
cp dist/Yaagl/resources.neu resources_napcn.neu | |
YAAGL_CHANNEL_CLIENT=napos node ./build-app.js | |
cp dist/Yaagl/resources.neu resources_napos.neu | |
- name: Tar app | |
run: | | |
tar -zcf Yaagl.app.tar.gz Yaagl.app | |
tar -zcf "Yaagl OS.app.tar.gz" "Yaagl OS.app" | |
tar -zcf "Yaagl Honkai Global.app.tar.gz" "Yaagl Honkai Global.app" | |
tar -zcf "Yaagl HSR.app.tar.gz" "Yaagl HSR.app" | |
tar -zcf "Yaagl HSR OS.app.tar.gz" "Yaagl HSR OS.app" | |
tar -zcf "Yaagl ZZZ.app.tar.gz" "Yaagl ZZZ.app" | |
tar -zcf "Yaagl ZZZ OS.app.tar.gz" "Yaagl ZZZ OS.app" | |
- name: Generate prerelease | |
uses: "marvinpinto/action-automatic-releases@latest" | |
with: | |
repo_token: "${{ secrets.GITHUB_TOKEN }}" | |
draft: true | |
title: "Release ${{ github.ref_name }}" | |
files: | | |
Yaagl.app.tar.gz | |
Yaagl OS.app.tar.gz | |
Yaagl Honkai Global.app.tar.gz | |
Yaagl HSR.app.tar.gz | |
Yaagl HSR OS.app.tar.gz | |
Yaagl ZZZ.app.tar.gz | |
Yaagl ZZZ OS.app.tar.gz | |
resources_hk4ecn.neu | |
resources_hk4eos.neu | |
resources_bh3glb.neu | |
resources_hkrpgcn.neu | |
resources_hkrpgos.neu | |
resources_napcn.neu | |
resources_napos.neu |