Skip to content

Commit

Permalink
create workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
NickJ202 committed Jun 18, 2024
1 parent f6d6875 commit 94b2b95
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
19 changes: 19 additions & 0 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: publish

on:
push:
branches:
- 'main'

jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 20.x
- run: npm install
- run: npm run deploy-main
env:
DEPLOY_KEY: ${{ secrets.DEPLOY_KEY }}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"test:verbose": "npm test -- --verbose",
"test:coverage": "CI=true npm test -- --env=jsdom --coverage",
"build": "NODE_ENV=production webpack",
"deploy": "npm run build && permaweb-deploy",
"deploy-main": "npm run build && permaweb-deploy --ant-contract OkVoeaDjUBwD4RTIiOFFXtgxpNFeRya0eAqVWaLUdpM",
"prepare": "husky install"
},
"dependencies": {
Expand Down

0 comments on commit 94b2b95

Please sign in to comment.