You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Portfolio/.github/workflows/deploy.yml

43 lines
821 B

name: "Deploy website"
on:
push:
branches:
- main
paths:
- src/**
- package.json
- yarn.lock
- tsconfig.*
- vite.config.ts
- .env
- index.html
- public
jobs:
deploy_to_pages:
name: Build pages
runs-on: ubuntu-latest
steps:
- name: Setup
uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: "16.x"
cache: "yarn"
- name: Install NPM dependencies
run: yarn install
- name: Build client
run: yarn run build
- name: Deploy to pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist
cname: guusvanmeerveld.dev