Skip to content

Always deploying to GH Pages on main commits #1

Always deploying to GH Pages on main commits

Always deploying to GH Pages on main commits #1

Workflow file for this run

name: Pages Deploy
on:
push:
# We only run this GitHub action upon new commits to `main`
branches:
- main
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install npm . Node
uses: actions/setup-node@v3
with:
node-version: 20.x
- name: Install
run: npm install
- name: Build Vike
run: npm run build
- name: Deploy
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages
folder: dist/client
# Remove previous build files
clean: true
# Do not remove the `.nojekyll` file: we have manually added an empty `.nojekyll` file at the root of the `gh-pages` branch and we don't want having to re-create it after each build.
clean-exclude: |
.nojekyll
permissions:
contents: write