Added Avasian, deleted rateprofile option #61
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 | |
on: | |
push: | |
branches: | |
- 'develop' | |
permissions: | |
contents: write | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout | |
uses: actions/checkout@v3 | |
- name: cache node_modules | |
uses: actions/cache@v3 | |
with: | |
path: node_modules | |
key: ${{ runner.os }}-node_modules | |
- name: checkout develop-deploy | |
run: | | |
git config --local user.email "[email protected]" | |
git config --local user.name "GitHub Action" | |
git pull | |
git checkout develop-deploy | |
git reset --hard develop | |
- name: install npm packages | |
run: cd _indexer && npm install | |
- name: run indexer | |
run: node _indexer/index.mjs | |
- name: update develop-deploy | |
run: | | |
git add . | |
git add -f index.json | |
git commit -m "Deploy $GITHUB_SHA" || true | |
git remote set-url --push origin https://actions:[email protected]/BossHobby/Templates | |
git push -f |