Skip to content

Instantly share code, notes, and snippets.

@tianhaoz95
Created October 17, 2019 06:35
Show Gist options
  • Save tianhaoz95/71152ff17d6bcaa29cd6f7e38343480c to your computer and use it in GitHub Desktop.
Save tianhaoz95/71152ff17d6bcaa29cd6f7e38343480c to your computer and use it in GitHub Desktop.
Flutter deploy docs
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