Skip to content

Commit

Permalink
chore: add ci for redeploying prod builds
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasRalee committed Jul 2, 2024
1 parent 632d64e commit be66f93
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 7 deletions.
7 changes: 0 additions & 7 deletions .github/workflows/layer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,6 @@ jobs:
cd injective-ui
git push origin master
- name: Get Pull Request Number
run: |
echo ${{ github.event.issue.number }}
echo ${{ github }}
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}

# - name: Create branch
# run: |
# cd injective-ui
Expand Down
28 changes: 28 additions & 0 deletions .github/workflows/prod-deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Rebuild prod

on:
push:
branches:
- master

jobs:
deploy:
runs-on: ubuntu-latest

steps:
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: "18.x"

- name: Redeployment products
run: |
curl -L \
-X POST \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer ${GH_TOKEN}" \
-H "X-GitHub-Api-Version: 2022-11-28" \
https://api.github.com/repos/InjectiveLabs/injective-lists/actions/workflows/deploy.yaml/dispatches \
-d '{"ref":"master","inputs":{}}'
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}

0 comments on commit be66f93

Please sign in to comment.