internal: Rename master branch to main (#3116) #307
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: Doc | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- 'docs/**' | |
- 'website/**' | |
- '.github/workflows/doc.yml' | |
jobs: | |
doc: | |
name: Update docs | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup Git | |
run: | | |
git config --global user.email "leo@xerial.org" | |
git config --global user.name "Taro L. Saito" | |
git config --global push.default simple | |
- name: Setup Deploy | |
run: | | |
mkdir -p ~/.ssh | |
ssh-keyscan github.com >> ~/.ssh/known_hosts | |
- name: Publish doc | |
env: | |
GIT_DEPLOY_KEY: ${{ secrets.GIT_DEPLOY_KEY }} | |
run: ./sbt docs/docusaurusPublishGhpages |