chore: add ci for redeploying prod builds #2
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: Package bump OLP | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout olp repository | |
uses: actions/checkout@v2 | |
with: | |
repository: injectiveLabs/injective-dmm-v2 | |
path: olp | |
token: ${{ secrets.GH_TOKEN }} | |
- name: Set up Node.js | |
uses: actions/setup-node@v2 | |
with: | |
node-version: "18.x" | |
- name: Install dependencies | |
run: | | |
cd olp | |
yarn install | |
- name: Commit changes | |
run: | | |
cd olp | |
git config user.name "${{ github.actor }}" | |
git config user.email "${{ github.actor }}@users.noreply.github.com" | |
git add . | |
git commit -m "chore: package bump" | |
- name: Push changes | |
run: | | |
cd olp | |
git push origin master |