Merge pull request #167 from Icarus9913/fix/typos #202
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: Build and Deploy | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v1 | |
with: | |
node-version: '12.x' | |
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} | |
- name: Remove existing app | |
run: rm -rf app/dist | |
- name: Npm install and build | |
run: | | |
npm run setup | |
npm run app:build | |
- name: Commit files | |
run: | | |
echo ${{ github.ref }} | |
git add . | |
git config --local user.email "[email protected]" | |
git config --local user.name "GitHub Action" | |
git commit -m "ci: Vue app automated build push" -a | exit 0 | |
- name: Push changes | |
if: github.ref == 'refs/heads/master' | |
uses: ad-m/github-push-action@master | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} |