Skip to content

Commit

Permalink
actions that deploy to gh pages
Browse files Browse the repository at this point in the history
  • Loading branch information
Waujito committed Mar 16, 2024
1 parent dd67a7a commit f728da3
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/deploy_github_pages.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: CD Github Pages

on:
push:
branches: [main]

permissions:
contents: write

jobs:
build-and-deploy:
concurrency: ci-${{ github.ref }} # Recommended if you intend to make multiple deployments in quick succession.
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./web_frontend

strategy:
matrix:
node-version: [20.x]

# env:

steps:
- uses: actions/checkout@v3

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}

- name: Install yarn
run: npm install --global yarn

- name: Install dependencies
run: yarn install --pure-lockfile

# Build
- name: Build project
run: yarn nuxi generate

# Deploy
- name: Deploy to Github Pages 🚀
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: .output/public # The folder the action should deploy.

0 comments on commit f728da3

Please sign in to comment.