Skip to content

Commit

Permalink
Configure gh-pages
Browse files Browse the repository at this point in the history
  • Loading branch information
mbeckem committed Aug 22, 2024
1 parent d158adc commit c22cf7a
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ on:
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 5
permissions:
contents: write
steps:
Expand Down Expand Up @@ -43,6 +44,10 @@ jobs:
pnpm build
pnpm test
- name: Bulid documentation
run: |
pnpm build-docs
- name: Determine release tag
if: ${{ inputs.release && github.ref == 'refs/heads/main' }}
run: |
Expand All @@ -66,3 +71,35 @@ jobs:
run: |
cd packages/reactivity-core
pnpm publish
- name: Upload documentation artifact
uses: actions/upload-artifact@v4
with:
name: docs
path: dist/docs
retention-days: 1

deploy:
if: github.ref == 'refs/heads/main'
concurrency: deploy-${{ github.ref }}
runs-on: ubuntu-latest
timeout-minutes: 5
needs: build
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Load documentation artifact
uses: actions/download-artifact@v4
with:
name: docs
path: docs

- name: Deploy
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: docs
branch: gh-pages
target-folder: ${{ inputs.release && 'stable' || 'dev' }}

0 comments on commit c22cf7a

Please sign in to comment.