Skip to content

Commit

Permalink
ci: temp disable docs deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
zce committed Nov 24, 2023
1 parent 4f77aef commit e8ffc53
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 44 deletions.
80 changes: 40 additions & 40 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,46 +1,46 @@
name: Deploy Docs to Pages
# name: Deploy Docs to Pages

on:
push:
branches: [main]
# on:
# push:
# branches: [main]

workflow_dispatch:
# workflow_dispatch:

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

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

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version: 18
cache: npm # or pnpm / yarn
- uses: actions/configure-pages@v3
- run: npm ci
- run: |
cd docs && npm run build
touch .vitepress/dist/.nojekyll
- uses: actions/upload-pages-artifact@v2
with:
path: docs/.vitepress/dist
# jobs:
# build:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
# with:
# fetch-depth: 0
# - uses: actions/setup-node@v4
# with:
# node-version: 18
# cache: npm # or pnpm / yarn
# - uses: actions/configure-pages@v3
# - run: npm ci
# - run: |
# cd docs && npm run build
# touch .vitepress/dist/.nojekyll
# - uses: actions/upload-pages-artifact@v2
# with:
# path: docs/.vitepress/dist

# Deployment job
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/deploy-pages@v2
# # Deployment job
# deploy:
# environment:
# name: github-pages
# url: ${{ steps.deployment.outputs.page_url }}
# needs: build
# runs-on: ubuntu-latest
# steps:
# - uses: actions/deploy-pages@v2
10 changes: 6 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,18 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v2
- uses: actions/setup-node@v4
with:
registry-url: https://registry.npmjs.org
- run: npm ci
- run: npm run build
node-version: LTS
cache: pnpm
- run: pnpm install
- run: pnpm build
publish:
if: startsWith(github.ref, 'refs/tags')
needs: build
runs-on: ubuntu-latest
steps:
- run: npm publish
- run: pnpm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit e8ffc53

Please sign in to comment.