Skip to content

Merge pull request #167 from Icarus9913/fix/typos #202

Merge pull request #167 from Icarus9913/fix/typos

Merge pull request #167 from Icarus9913/fix/typos #202

Workflow file for this run

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 }}