altv-npc-conversation (#166) #193
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
# This is a basic workflow to help you get started with Actions | |
name: CI | |
on: | |
push: | |
branches: [master] | |
release: | |
types: [published] | |
branches: [master] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
persist-credentials: false # otherwise, the token used is the GITHUB_TOKEN, instead of your personal token | |
fetch-depth: 0 # otherwise, you will failed to push refs to dest repo | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: 13 | |
- name: Pull Origin | |
run: git pull origin master | |
- name: Install Dependencies | |
run: npm install | |
- name: Clear Previous File | |
run: rm -rf ./dist/resources.json | |
- name: Build Files | |
run: npm run build | |
- name: Add Dist File and Update | |
run: | | |
git config --local user.email "action@github.com" | |
git config --local user.name "GitHub Action" | |
git add ./dist | |
git commit -m "Updated Resource List" -a | |
- name: Push changes | |
uses: ad-m/github-push-action@master | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} |