Skip to content

zeakd is testing out GitHub Actions 🚀 #41

zeakd is testing out GitHub Actions 🚀

zeakd is testing out GitHub Actions 🚀 #41

name: Deploy Website
run-name: ${{ github.actor }} is testing out GitHub Actions 🚀
on:
push:
branches:
- main
env:
NEXT_PUBLIC_GA_TRACKING_ID: G-51RCXPWJLZ
NEXT_PUBLIC_WEBSITE_BASE_PATH: '/react-naver-maps'
jobs:
build-and-deploy:
concurrency: ci-${{ github.ref }} # Recommended if you intend to make multiple deployments in quick succession.
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: 7
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
- name: Install and Build 🔧 # This example project is built using npm and outputs the result to the 'build' folder. Replace with the commands required to build your project, or remove this step entirely if your site is pre-built.
run: |
pnpm install
pnpm -r run build
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: website/out
clean: false