Skip to content

fix: 🚨update app URL in README.md #14

fix: 🚨update app URL in README.md

fix: 🚨update app URL in README.md #14

Workflow file for this run

name: Deploy to GitHub Pages
on:
push:
branches:
- main
jobs:
deploy:
name: Deploy app to GitHub Pages
runs-on: ubuntu-latest
environment: github-pages
env:
CI: true
permissions:
contents: write
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
steps:
- uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: '16'
- name: Cache dependencies
uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install dependencies and build app
run: |
npm ci
npm run build
env:
VITE_SHUFFLE_API_URL: ${{ secrets.VITE_SHUFFLE_API_URL }}
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
if: github.ref == 'refs/heads/main'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist
publish_branch: gh-pages