update: cutome deploy. #1
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy Github Page | ||
on: | ||
push: | ||
branches: | ||
- 'main' | ||
- 'pr-2316' | ||
jobs: | ||
deploy: | ||
runs-on: ubuntu-22.04 | ||
permissions: | ||
contents: write | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
Check failure on line 19 in .github/workflows/deploy.yml GitHub Actions / Deploy Github PageInvalid workflow file
|
||
node-version: 18 | ||
cache: 'npm' | ||
- name: Install dependencies | ||
run: npm ci --ignore-scripts | ||
- name: Build Lib | ||
run: npm run build | ||
- name: Deploy | ||
uses: peaceiris/actions-gh-pages@v3 | ||
#if: github.ref == 'refs/heads/main' | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_dir: ./docs |