chore(ci): missing bundle name export

This commit is contained in:
Neko Ayaka 2026-04-06 21:37:34 +08:00
parent 4b203b4d92
commit f649006948
No known key found for this signature in database

View file

@ -408,6 +408,12 @@ jobs:
echo "BUNDLE_NAME=$(pnpm exec tsx scripts/artifacts-metadata.ts ${{ matrix.target }} --get-bundle-name --release ${{ !inputs.build_only && !inputs.artifacts_only }} --tag ${{ inputs.tag }} --auto-tag ${{ !inputs.build_only }})" >> $env:GITHUB_ENV
echo "VERSION=$(pnpm exec tsx scripts/artifacts-metadata.ts ${{ matrix.target }} --get-version --release ${{ !inputs.build_only && !inputs.artifacts_only }} --tag ${{ inputs.tag }} --auto-tag ${{ !inputs.build_only }})" >> $env:GITHUB_ENV
- name: Get Artifacts Envs (Automatic + Non-Windows)
if: ${{ github.event_name == 'release' && matrix.os != 'windows-latest' }}
working-directory: ./apps/stage-tamagotchi
run: |
echo "BUNDLE_NAME=$(pnpm exec tsx scripts/artifacts-metadata.ts ${{ matrix.target }} --get-bundle-name --release --auto-tag)" >> $GITHUB_ENV
- name: Upload Artifacts (Automatic + Windows Only)
if: ${{ github.event_name == 'release' && matrix.os == 'windows-latest' }}
id: unsigned-artifacts-release
@ -445,6 +451,34 @@ jobs:
run: |
pnpm -F @proj-airi/stage-tamagotchi run regenerate-windows-latest --input apps/stage-tamagotchi/bundle/${{ env.BUNDLE_NAME }} --output apps/stage-tamagotchi/bundle/latest-x64.yml --version ${{ env.VERSION }}
- name: Upload Distribution Artifact (Automatic + macOS arm64 Only)
if: ${{ github.event_name == 'release' && matrix.os == 'macos-26' }}
uses: actions/upload-artifact@v7
with:
name: distribution-osx
path: apps/stage-tamagotchi/bundle/${{ env.BUNDLE_NAME }}
- name: Upload Distribution Artifact (Automatic + Windows Only)
if: ${{ github.event_name == 'release' && matrix.os == 'windows-latest' }}
uses: actions/upload-artifact@v7
with:
name: distribution-win
path: apps/stage-tamagotchi/bundle/${{ env.BUNDLE_NAME }}
- name: Upload Distribution Artifact (Automatic + Linux x64 Only)
if: ${{ github.event_name == 'release' && matrix.os == 'ubuntu-latest' }}
uses: actions/upload-artifact@v7
with:
name: distribution-linux-x64
path: apps/stage-tamagotchi/bundle/${{ env.BUNDLE_NAME }}
- name: Upload Distribution Artifact (Automatic + Linux arm64 Only)
if: ${{ github.event_name == 'release' && matrix.os == 'ubuntu-24.04-arm' }}
uses: actions/upload-artifact@v7
with:
name: distribution-linux-arm64
path: apps/stage-tamagotchi/bundle/${{ env.BUNDLE_NAME }}
- name: Upload To GitHub Releases (Automatic)
if: ${{ github.event_name == 'release' }}
uses: softprops/action-gh-release@v2
@ -463,24 +497,42 @@ jobs:
apps/stage-tamagotchi/bundle/latest-*.yml
append_body: true
publish-distribution:
name: Publish Distribution
needs: build
if: ${{ github.event_name == 'release' }}
runs-on: ubuntu-latest
strategy:
matrix:
include:
- artifact_name: distribution-osx
platform: osx
- artifact_name: distribution-win
platform: win
- artifact_name: distribution-linux-x64
platform: linux
- artifact_name: distribution-linux-arm64
platform: linux
steps:
- name: Resolve release version
run: |
echo "VERSION=${GITHUB_REF_NAME#v}" >> $GITHUB_ENV
- name: Download distribution artifact
uses: actions/download-artifact@v5
with:
name: ${{ matrix.artifact_name }}
path: dist/${{ matrix.artifact_name }}
- name: Resolve artifact path
run: |
echo "ARTIFACT_PATH=$(find dist/${{ matrix.artifact_name }} -maxdepth 1 -mindepth 1 | head -n 1)" >> $GITHUB_ENV
- name: Setup butler
uses: remarkablegames/setup-butler@v2
# https://itch.io/docs/butler/pushing.html
- name: Upload macOS (arm64) to itch.io
if: ${{ github.event_name == 'release' && matrix.os == 'macos-26' }}
run: butler push apps/stage-tamagotchi/bundle/${{ env.BUNDLE_NAME }} nekomeowww/airi:osx --userversion ${{ env.VERSION }}
env:
BUTLER_API_KEY: ${{ secrets.GAME_PUBLISHING_ITCHIO }}
- name: Upload Windows (x64) to itch.io
if: ${{ github.event_name == 'release' && matrix.os == 'windows-latest' }}
run: butler push apps/stage-tamagotchi/bundle/${{ env.BUNDLE_NAME }} nekomeowww/airi:win --userversion ${{ env.VERSION }}
env:
BUTLER_API_KEY: ${{ secrets.GAME_PUBLISHING_ITCHIO }}
- name: Upload Linux (arm64/amd64) to itch.io
if: ${{ github.event_name == 'release' && (matrix.os == 'ubuntu-latest' || matrix.os == 'ubuntu-24.04-arm') }}
run: butler push apps/stage-tamagotchi/bundle/${{ env.BUNDLE_NAME }} nekomeowww/airi:linux --userversion ${{ env.VERSION }}
- name: Publish distribution artifact to itch.io
run: butler push "${{ env.ARTIFACT_PATH }}" nekomeowww/airi:${{ matrix.platform }} --userversion "${{ env.VERSION }}"
env:
BUTLER_API_KEY: ${{ secrets.GAME_PUBLISHING_ITCHIO }}