Created
October 17, 2019 06:35
-
-
Save tianhaoz95/71152ff17d6bcaa29cd6f7e38343480c to your computer and use it in GitHub Desktop.
Flutter deploy docs
This file contains hidden or 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: Documentation | |
on: | |
push: | |
branches: | |
- "master" | |
jobs: | |
deploy: | |
name: Generate documentation | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Configure git credentials | |
run: | | |
git config --global user.email "[email protected]" | |
git config --global user.name "Tianhao Zhou" | |
- name: Deploy docs | |
run: | | |
cd ./website | |
echo "machine github.com login tianhaoz95 password $GITHUB_TOKEN" > ~/.netrc | |
npm install | |
npm run publish-gh-pages | |
env: | |
GIT_USER: ${{ secrets.DOCS_GIT_USER }} | |
GITHUB_TOKEN: ${{ secrets.MY_GITHUB_TOKEN }} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment