Skip to content

Merge pull request #5 from DatepollSystems/fix/preview #34

Merge pull request #5 from DatepollSystems/fix/preview

Merge pull request #5 from DatepollSystems/fix/preview #34

Workflow file for this run

# Sample workflow for building and deploying a Hugo site to GitHub Pages
name: Deploy site
on:
# Runs on pushes targeting the default branch
push:
branches:
- main
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "pages"
cancel-in-progress: false
# Default to bash
defaults:
run:
shell: bash
jobs:
build:
# <Not provided for brevity>
# At a minimum this job should upload artifacts using actions/upload-pages-artifact
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: setup node and pnpm
uses: dafnik/setup-node-pnpm@v1
with:
install: true
- name: build
run: pnpm build
- name: Upload artifact
id: deployment
uses: actions/upload-pages-artifact@v2
with:
path: ./dist/
retention-days: 1
# Deployment job
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2