Skip to content

Improve: UI & code (#1179) #506

Improve: UI & code (#1179)

Improve: UI & code (#1179) #506

Workflow file for this run

name: Deploy 1000h website
on:
workflow_dispatch:
push:
branches:
- main
paths:
- "1000-hours/**"
pull_request:
branches:
- main
paths:
- "1000-hours/**"
jobs:
deploy:
runs-on: ubuntu-latest
name: Deploy
steps:
# checkout the code
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: "**/node_modules"
key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
- name: Setup node env
uses: actions/setup-node@master
with:
node-version: "20"
- name: Install dependencies
run: yarn install
- name: Build
run: yarn docs:build
- name: Deploy
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CF_BASEONE_API_TOKEN }}
accountId: ${{ secrets.CF_BASEONE_ACCOUNT_ID }}
command: deploy
workingDirectory: "1000-hours"