Skip to content

Commit

Permalink
fix: workflow (#58)
Browse files Browse the repository at this point in the history
  • Loading branch information
steveblue authored Oct 12, 2024
1 parent 1de7d29 commit 622dac5
Showing 1 changed file with 34 additions and 34 deletions.
68 changes: 34 additions & 34 deletions .github/workflows/github_pages.yml
Original file line number Diff line number Diff line change
@@ -1,49 +1,49 @@
name: Test and Deploy
on:
push:
branches: [main]
branches: [main]
jobs:
run:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/[email protected]
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/[email protected]

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '20'
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '20'

- name: Enable Corepack
run: corepack enable
- name: Enable Corepack
run: corepack enable

- name: Install Yarn
run: corepack prepare [email protected] --activate
- name: Install Yarn
run: corepack prepare [email protected] --activate

- name: Install Dependencies
run: yarn install --immutable
- name: Install Dependencies
run: yarn install --immutable

- name: Run Lint
run: yarn lint
- name: Run Lint
run: yarn lint

- name: Check Format
run: yarn pretty:check
- name: Check Format
run: yarn pretty:check

- name: Cypress
uses: cypress-io/[email protected]
with:
build: yarn build
start: yarn serve
wait-on: http://localhost:4444
- name: Cypress
uses: cypress-io/[email protected]
with:
build: yarn build
start: yarn serve
wait-on: http://localhost:4444

- name: Clean
run: yarn clean:dist
- name: Clean
run: yarn clean:dist

- name: Build
run: yarn build:client
- name: Build
run: yarn build:client

- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: '${{ secrets.GITHUB_TOKEN }}'
publish_dir: ./dist/client
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: '${{ secrets.GITHUB_TOKEN }}'
publish_dir: ./dist/client

0 comments on commit 622dac5

Please sign in to comment.