Skip to content

Commit

Permalink
Merge pull request #134 from piny940/deploy-doc
Browse files Browse the repository at this point in the history
API docをcloudflare pagesにデプロイする
  • Loading branch information
piny940 authored Dec 1, 2024
2 parents 0cd12ca + 0da90ca commit cdf8789
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions .github/workflows/prd-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,6 @@ jobs:
runs-on: ubuntu-latest
needs: filter
if: needs.filter.outputs.spec == 'true'
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -102,12 +99,8 @@ jobs:
cache-dependency-path: "spec/package.json"
- name: Build doc
run: cd spec && pnpm run export
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
- uses: cloudflare/wrangler-action@v3
with:
path: "./spec/out"
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
command: |
pages deploy --project-name=auth-doc spec/out

0 comments on commit cdf8789

Please sign in to comment.