This repository has been archived by the owner on Oct 25, 2024. It is now read-only.
Create scorecard.yml #1405
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: Publish | |
on: | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
permissions: | |
contents: read | |
jobs: | |
build: | |
permissions: | |
contents: write # for peaceiris/actions-gh-pages to push pages branch | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Build Online Document | |
run: | | |
git config --local --get remote.origin.url | |
cd docs/build_docs | |
bash build.sh latest | |
- name: Push to github | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./build_tmp/gh-pages | |
publish_branch: gh-pages |