Skip to content

Merge remote-tracking branch 'refs/remotes/origin/master' #28

Merge remote-tracking branch 'refs/remotes/origin/master'

Merge remote-tracking branch 'refs/remotes/origin/master' #28

Workflow file for this run

name: build and deploy to gh-pages
on:
workflow_dispatch:
push:
branches:
- master
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
# Allow one concurrent deployment
concurrency:
group: "pages"
cancel-in-progress: true
jobs:
# Build job:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Build
uses: actions/setup-node@main
with:
node-version: 14
- run: |
npm install
npm run build
- run: echo 'zackdk.com' > build/CNAME
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
path: build
# Deployment job
deploy:
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1