Skip to content

Update Format

Update Format #4

Workflow file for this run

name: Deploy
on:
push:
branches: [ "main" ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: set env
run: echo "NOW=$(date +'%Y-%m-%dT%H-%M-%S')" >> $GITHUB_ENV
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: 20
- name: Install
uses: ./.github/actions/yarn-nm-install
with:
enable-corepack: true
cache-node-modules: true
cache-install-state: true
- name: Build
shell: "bash"
run: yarn run build
- name: Upload Pages Artifact
uses: actions/upload-pages-artifact@v1
with:
path: "./dist/"
deploy:
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1