Skip to content

Commit

Permalink
Merge pull request #441 from G7DAO/fixes-release-work-dir-naming
Browse files Browse the repository at this point in the history
Fixed working dir for release bridge and naming
  • Loading branch information
kompotkot authored Feb 21, 2025
2 parents 6461877 + 8427ea3 commit 75d2199
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/release_game7-bridge-sdk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,13 @@ jobs:
node-version: "20.14.0"

- name: Build and install dependencies
working-directory: ./packages/game7-bridge-sdk
run: |
npm install
npm run build
- name: Publish package
working-directory: ./packages/game7-bridge-sdk
env:
NODE_AUTH_TOKEN: ${{ secrets.NPMJS_GAME7_BRIDGE_SDK_AUTH_TOKEN }}
run: npm publish --access public
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ on:
- "game7-v*"

jobs:
create_release:
release_game7-create:
runs-on: ubuntu-20.04
steps:
- uses: actions/create-release@v1
id: create_release
id: release_game7-create
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
Expand All @@ -21,10 +21,10 @@ jobs:
draft: true
prerelease: false
outputs:
upload_url: ${{ steps.create_release.outputs.upload_url }}
upload_assets:
upload_url: ${{ steps.release_game7-create.outputs.upload_url }}
release_game7-upload_assets:
runs-on: ubuntu-20.04
needs: create_release
needs: release_game7-create
strategy:
fail-fast: true
matrix:
Expand Down Expand Up @@ -108,7 +108,7 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.create_release.outputs.upload_url }}
upload_url: ${{ needs.release_game7-create.outputs.upload_url }}
asset_path: ./${{ github.ref_name }}-${{ matrix.os }}-${{ matrix.arch }}.zip
asset_name: ${{ github.ref_name }}-${{ matrix.os }}-${{ matrix.arch }}.zip
asset_content_type: application/zip

0 comments on commit 75d2199

Please sign in to comment.