Skip to content

Merge pull request #381 from commjoen/dependabot/npm_and_yarn/asamuza… #378

Merge pull request #381 from commjoen/dependabot/npm_and_yarn/asamuza…

Merge pull request #381 from commjoen/dependabot/npm_and_yarn/asamuza… #378

Workflow file for this run

name: Deploy to GitHub Pages
on:
push:
branches: [main]
jobs:
build-and-deploy:
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Get version from tag
id: get_version
run: |
git fetch --tags --force
VERSION=$(git describe --tags --abbrev=0)
export VERSION
echo "VERSION=${VERSION}" >> "$GITHUB_OUTPUT"
- uses: actions/setup-node@v6
with:
node-version: 24
- run: npm ci
- run: VITE_BASE_PATH=/generated-game-experiment/ npm run build
- run: ls -l
- run: ls -l dist
- run: touch dist/.keep
- name: Deploy
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist