Skip to content

Commit

Permalink
fix: refine github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
xmlking committed May 19, 2024
1 parent 52fdff1 commit 36e07b1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 15 deletions.
3 changes: 3 additions & 0 deletions .github/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ Automating tasks with GitHub Actions

## TODO

- https://github.com/marketplace/actions/turbo-changed
- https://github.com/Trampoline-CX/action-turbo-changed/blob/main/.github/workflows/example-pull_request.yml

### Examples

- https://github.com/kporten/template-react/tree/main/.github/workflows
21 changes: 6 additions & 15 deletions .github/workflows/docs-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,24 +34,15 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Pages 📄
- name: ⚙️ Setup Node
uses: ./.github/actions/setup
- name: 💎 Setup Pages
uses: actions/configure-pages@v5
with:
enablement: true
- name: Setup PNPM ⚙️
uses: pnpm/action-setup@v3
- name: Setup Node 📐
uses: actions/setup-node@v4
with:
node-version: lts/*
cache: 'pnpm'
# - name: Filter Docs 📃
# run: pnpm turbo prune --scope=docs
- name: Install dependencies 💎
run: pnpm install
- name: Build 🏗️
run: pnpm turbo build --filter=docs
- name: Upload Artifact ☁️
- name: 🏗️ Build
run: turbo build --filter=docs
- name: ☁️ Upload Artifact
uses: actions/upload-pages-artifact@v3
with:
path: apps/docs/dist
Expand Down

0 comments on commit 36e07b1

Please sign in to comment.