Skip to content

set dir

set dir #55

Workflow file for this run

name: Build and Deploy
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v4
- name: Setup Node.js 📦
uses: actions/setup-node@v4
with:
node-version: 18.x
- name: Pre-render 🎨
uses: brycedorn/react-snap-action@v1.0.2
with:
output: build
- name: Remove tags
run: npm run remove-tags
- name: Upload Artifacts 🔺
uses: actions/upload-artifact@v1
with:
name: site
path: build
deploy:
needs: [build]
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v4
- name: Download Artifacts 🔻
uses: actions/download-artifact@v1
with:
name: site
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: deploy
folder: 'site'