From 6cae446f3d588fbbc9c10bd362919d4f1ba7ec56 Mon Sep 17 00:00:00 2001 From: pilcrowOnPaper Date: Sun, 20 Oct 2024 19:27:23 +0900 Subject: [PATCH] update workflow --- .github/workflows/docs.yaml | 4 ++-- .github/workflows/v2-docs.yaml | 33 --------------------------------- 2 files changed, 2 insertions(+), 35 deletions(-) delete mode 100644 .github/workflows/v2-docs.yaml diff --git a/.github/workflows/docs.yaml b/.github/workflows/docs.yaml index 57c122fa3..8583cc639 100644 --- a/.github/workflows/docs.yaml +++ b/.github/workflows/docs.yaml @@ -1,4 +1,4 @@ -name: "Publish docs" +name: "Publish v3 docs" on: push: branches: @@ -30,4 +30,4 @@ jobs: - name: install wrangler run: npm i -g wrangler - name: deploy - run: wrangler pages deploy docs/dist --project-name lucia --branch main + run: wrangler pages deploy docs/dist --project-name lucia --branch v3 diff --git a/.github/workflows/v2-docs.yaml b/.github/workflows/v2-docs.yaml deleted file mode 100644 index cc460f22c..000000000 --- a/.github/workflows/v2-docs.yaml +++ /dev/null @@ -1,33 +0,0 @@ -name: "Publish v2 docs" -on: - push: - branches: - - v2 - -env: - CLOUDFLARE_API_TOKEN: ${{secrets.CLOUDFLARE_PAGES_API_TOKEN}} - -jobs: - publish-docs: - name: Publish docs - runs-on: ubuntu-latest - steps: - - name: setup actions - uses: actions/checkout@v3 - - name: setup node - uses: actions/setup-node@v3 - with: - node-version: 20.5.1 - registry-url: https://registry.npmjs.org - - name: Install PNPM - run: npm i -g pnpm - - name: Install dependencies - run: pnpm i - - name: Build - working-directory: documentation - run: pnpm build - - name: Install wrangler - run: npm i -g wrangler - - name: deploy - working-directory: documentation - run: wrangler pages deploy dist --project-name lucia-v2 --branch v2