feat: use github login #15
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: Deploy | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
push_to_gh_pages: | |
runs-on: ubuntu-latest | |
steps: | |
- run: node --version | |
- run: npm --version | |
- uses: actions/checkout@v3 | |
- run: npm install | |
- run: npm run build | |
- name: Configure Git user | |
- uses: fregante/setup-git-user@v2 | |
- run: | | |
git config user.name "${{ github.user.login }}" | |
git config user.email "${{ github.user.email }}" | |
git add dist && git commit -m "build" | |
git subtree push --prefix dist origin gh-pages | |