Skip to content

Add prepublishOnly hook (#90) #16

Add prepublishOnly hook (#90)

Add prepublishOnly hook (#90) #16

name: Deploy to GitHub Pages
on:
push:
branches:
- develop
workflow_dispatch:
permissions:
contents: read
id-token: write
pages: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
cache: npm
node-version: 'lts/*'
- name: Install Dependencies
run: npm ci
- name: Build CSS
run: npm run build:css
- name: Build Icons
run: npm run build:icons
- name: Upload Artifact
uses: actions/upload-pages-artifact@v1
with:
path: .
deploy:
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@v1