fully repaid loans reward #693
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, pull_request ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: '16' | |
- name: Pre-install | |
run: yarn --network-concurrency 1 | |
- name: Setup Git Config | |
run: | | |
git config user.name "GitHub Actions Bot" | |
git config user.email "<>" | |
- name: Deploy Alfajores | |
if: github.ref == 'refs/heads/alfajores' | |
run: | | |
yarn deploy:alfajores | |
git commit -am "GitHub Actions - Check in new artifacts" | |
git push origin alfajores | |
- name: Deploy Mainnet | |
if: github.ref == 'refs/heads/master' | |
run: | | |
yarn deploy:mainnet | |
git commit -am "GitHub Actions - Check in new artifacts" | |
git push origin master | |
- name: Run Check Git | |
run: | | |
git diff --quiet --exit-code --cached |