Remove original GitHub workflow gamedistribution-build.yml
Some checks are pending
Build WorldGuessr / build (push) Waiting to run
Some checks are pending
Build WorldGuessr / build (push) Waiting to run
This commit is contained in:
parent
9b30b340a6
commit
0d31cf5295
1 changed files with 0 additions and 53 deletions
53
.github/workflows/gamedistribution-build.yml
vendored
53
.github/workflows/gamedistribution-build.yml
vendored
|
|
@ -1,53 +0,0 @@
|
|||
name: GameDistribution Build
|
||||
|
||||
on:
|
||||
push:
|
||||
branches-ignore:
|
||||
- 'gh-pages'
|
||||
- 'gh-pages-dev'
|
||||
- 'coolmath-build'
|
||||
- 'coolmath-build-*'
|
||||
- 'gamedistribution-build'
|
||||
- 'gamedistribution-build-*'
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
build-gamedistribution:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
CI: false
|
||||
NEXT_PUBLIC_GAMEDISTRIBUTION: true
|
||||
NEXT_PUBLIC_API_URL: api.worldguessr.com
|
||||
NEXT_PUBLIC_WS_HOST: server.worldguessr.com
|
||||
NEXT_PUBLIC_GOOGLE_CLIENT_ID: 471080734176-vm588te8pig8tnmvi00b5hr143d64qjk.apps.googleusercontent.com
|
||||
NEXT_PUBLIC_BASE_PATH: https://revision.gamedistribution.com/fef00656129743768437b7589b7c48b1/
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Set up Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: '18'
|
||||
|
||||
- name: Install dependencies
|
||||
run: npm i
|
||||
|
||||
- name: Build GameDistribution version
|
||||
run: npm run build
|
||||
|
||||
- name: Get branch name
|
||||
id: branch
|
||||
run: |
|
||||
BRANCH_NAME="${GITHUB_REF_NAME}"
|
||||
# Sanitize branch name for use in git branch name
|
||||
SAFE_BRANCH_NAME=$(echo "$BRANCH_NAME" | sed 's/[^a-zA-Z0-9_-]/-/g')
|
||||
echo "name=$SAFE_BRANCH_NAME" >> $GITHUB_OUTPUT
|
||||
echo "Building GameDistribution version for branch: $BRANCH_NAME"
|
||||
|
||||
- name: Deploy to GameDistribution build branch
|
||||
uses: peaceiris/actions-gh-pages@v4
|
||||
with:
|
||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
publish_dir: ./out
|
||||
publish_branch: gamedistribution-build-${{ steps.branch.outputs.name }}
|
||||
commit_message: "GameDistribution build from ${{ github.sha }}"
|
||||
Loading…
Add table
Add a link
Reference in a new issue