Skip to content

Commit

Permalink
build: update deploy workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
kyziq committed Jan 7, 2024
1 parent 24f7d73 commit a293a36
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 51 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/deploy-stage.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Build and Deploy to GitHub Pages

on:
push:
branches:
- main
workflow_dispatch:

jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2

- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '20'
cache: 'pnpm'

- name: Cache pnpm Store
uses: actions/cache@v1
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-
- name: Install pnpm
run: npm install -g pnpm

- name: Install Dependencies
run: pnpm install

- name: Build Static Content
run: pnpm run build

- name: Deploy to GitHub Pages
uses: JamesIves/[email protected]
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: dist
CLEAN: true
51 changes: 0 additions & 51 deletions .github/workflows/deploy.yaml

This file was deleted.

0 comments on commit a293a36

Please sign in to comment.