Skip to content

build: build page on deploy #27

build: build page on deploy

build: build page on deploy #27

Workflow file for this run

name: Deploy to GitHub Pages
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '18'
- name: Install Tailwind CSS CLI
run: npm install -g tailwindcss
- name: build
run: go run cmd/generator/main.go
- name: Upload static files as artifacts
uses: actions/upload-pages-artifact@v3
id: deployment
with:
path: public/
deploy:
permissions:
pages: write
id-token: write
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@v4