Skip to content

Commit

Permalink
ci: add build
Browse files Browse the repository at this point in the history
  • Loading branch information
crashmax-dev committed Aug 27, 2024
1 parent 7d7a301 commit a89f554
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: CI

on:
push:
branches:
- master

permissions:
id-token: write
contents: write

jobs:
cache-and-install:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Install pnpm
uses: pnpm/action-setup@v3
with:
version: 9

- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: pnpm

- name: Install dependencies
run: pnpm install

- name: Build apps and packages
run: pnpm build

- name: Deploy to GitHub Pages
uses: JamesIves/github-pages-deploy-action@v4.5.0
with:
branch: gh-pages
folder: dist

0 comments on commit a89f554

Please sign in to comment.