Skip to content

ci/cd: push workflow #1

ci/cd: push workflow

ci/cd: push workflow #1

name: Deploy to GitHub Pages
on:
push:
branches:
- master
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: '18.x'
- name: Replace Vite Config Base
run: mv vite.config.js vite.config.azure.js && mv vite.config.github.js vite.config.js && sed -i '1s/.*/const base = "dandelion"/' src/main.js && cat src/main.js
- name: Install Yarn
run: npm install -g yarn
- name: Install Dependencies
run: yarn install
- name: Build
run: yarn build
- name: Touch .nojekyll
run: touch dist/.nojekyll
- name: Deploy
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: dist