Skip to content

Commit

Permalink
ci: update gh
Browse files Browse the repository at this point in the history
  • Loading branch information
crashmax-dev committed Jul 13, 2024
1 parent e056f41 commit b2c99eb
Showing 1 changed file with 23 additions and 19 deletions.
42 changes: 23 additions & 19 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,38 +5,42 @@ on:
branches:
- master

permissions:
id-token: write
contents: write

env:
TURBO_TELEMETRY_DISABLED: 1

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

- name: Cache PNPM
uses: actions/cache@v3
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-node-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-node-
- name: Setup turborepo cache
uses: dtinth/setup-github-actions-caching-for-turbo@v1

- name: Setup Node
uses: actions/setup-node@v3
- name: Install pnpm
uses: pnpm/action-setup@v3
with:
node-version: 16
version: 9

- name: Installing packages
uses: pnpm/action-setup@v2.2.2
- name: Install Node.js
uses: actions/setup-node@v4
with:
version: 7.x.x
run_install: |
- args: [--frozen-lockfile]
node-version: 20
cache: pnpm

- name: Install dependencies
run: pnpm install

- name: Build website
run: pnpm build:website
- name: Build apps and packages
run: pnpm build

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

0 comments on commit b2c99eb

Please sign in to comment.