add portal

This commit is contained in:
Lyric
2024-06-24 19:17:13 +09:00
parent 3c1b525da7
commit 0db3c4b586
56 changed files with 1323 additions and 0 deletions

View File

@@ -0,0 +1,47 @@
name: Deploy 1000h portal
on:
workflow_dispatch:
push:
branches:
- main
paths:
- "1000h-portal/**"
pull_request:
branches:
- main
paths:
- "1000h-portal/**"
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 generate
- name: Deploy
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
command: deploy
workingDirectory: "1000h-portal"