Skip to content

Merge pull request #95 from sandstreamdev/enable-automatic-deployment… #1

Merge pull request #95 from sandstreamdev/enable-automatic-deployment…

Merge pull request #95 from sandstreamdev/enable-automatic-deployment… #1

Workflow file for this run

name: Deploy with gh-pages
on:
push:
branches: [master]
jobs:
build-and-deploy:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x]
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: "npm"
- name: Install and build
run: |
npm ci
npm run build
- name: Deploy with gh-pages
run: |
git remote set-url origin https://git:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git
npx gh-pages -d build -u "github-actions-bot <[email protected]>"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}