Skip to content

Commit

Permalink
deploy.yml 追加
Browse files Browse the repository at this point in the history
  • Loading branch information
voluntas committed Aug 16, 2024
1 parent b0107a0 commit cfe496f
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Deploy sora-devtools to Pages

on:
push:
branches: ["develop", "feature/github-pages"]

permissions:
contents: read
pages: write
id-token: write

concurrency:
group: "pages"
cancel-in-progress: false

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "22"
- uses: pnpm/action-setup@v4
# - uses: actions/configure-pages@v5
# with:
# static_site_generator: next
- run: pnpm install
- run: pnpm run build
- uses: actions/upload-pages-artifact@v3
with:
path: ./dist

deploy:
needs: build
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4

0 comments on commit cfe496f

Please sign in to comment.