Skip to content

Commit

Permalink
ci: Update workflows config.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Sep 15, 2023
1 parent 0deb58c commit 5ff39ad
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: CI
on:
push:
branches:
- main
- v1

jobs:
build-deploy:
Expand All @@ -11,7 +11,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
node-version: 18
registry-url: 'https://registry.npmjs.org'

- run: npm install
Expand Down Expand Up @@ -46,12 +46,20 @@ jobs:
id: tag_version
uses: jaywcjlove/changelog-generator@main

- name: Create README.md
working-directory: ./www/build
run: |
cat > README.md << EOF
Preview of version 1 documentation is available [here](https://raw.githack.com/uiwjs/react-json-view/v1-docs/index.html).
EOF
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
commit_message: ${{steps.tag_version.outputs.tag}} ${{ github.event.head_commit.message }}
commit_message: ${{ github.event.head_commit.message }}
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./www/build
publish_branch: v1-docs

- name: Generate Changelog
id: changelog
Expand Down

0 comments on commit 5ff39ad

Please sign in to comment.