mirror of
https://github.com/tlsnotary/website.git
synced 2026-01-08 22:38:08 -05:00
43 lines
1004 B
YAML
43 lines
1004 B
YAML
name: Build & Deploy to Pages
|
|
|
|
on:
|
|
push:
|
|
branches: [master]
|
|
|
|
# Allows you to run this workflow manually from the Actions tab
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build-and-deploy:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout 🛒
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Setup Node.js ⚙️ - Cache dependencies ⚡ - Install dependencies 🔧
|
|
uses: ./.github/workflows/setup-node
|
|
|
|
- name: Setup Pages ⚙️
|
|
uses: actions/configure-pages@v4
|
|
with:
|
|
static_site_generator: next
|
|
|
|
- name: Build with Next.js 🏗️
|
|
run: npx next build
|
|
|
|
- name: Upload artifact 📡
|
|
uses: actions/upload-pages-artifact@v3
|
|
with:
|
|
path: ./out
|
|
|
|
- name: Publish to GitHub Pages 🚀
|
|
id: deployment
|
|
uses: actions/deploy-pages@v4
|
|
|
|
#- name: Deploy to gh-pages branch
|
|
# uses: JamesIves/github-pages-deploy-action@v4.4.3
|
|
# with:
|
|
# branch: gh-pages
|
|
# folder: out
|