-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
josh
committed
Feb 11, 2024
1 parent
d06aaa8
commit 41a29b2
Showing
64 changed files
with
23,252 additions
and
774 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: deploy | ||
on: [push] | ||
env: | ||
TESTNET_PRIV_KEY: ${{ secrets.TESTNET_PRIV_KEY }} | ||
TESTNET_APP_PRIV_KEY: ${{ secrets.TESTNET_APP_PRIV_KEY }} | ||
jobs: | ||
contract: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: '14' | ||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: stable | ||
target: wasm32-unknown-unknown | ||
- run: npm install -g near-cli | ||
- run: mkdir -p ~/.near-credentials/testnet | ||
- run: echo $TESTNET_APP_PRIV_KEY > ~/.near-credentials/testnet/app2.hashassine.testnet.json | ||
- run: echo $TESTNET_PRIV_KEY > ~/.near-credentials/testnet/hashassine.testnet.json | ||
- run: make contract/build | ||
- run: make contract/deploy-testnet | ||
|
||
frontend: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: '14' | ||
- run: cd hashassine-frontend && npm ci | ||
- run: make frontend/build | ||
- uses: JamesIves/[email protected] | ||
with: | ||
branch: gh-pages | ||
folder: hashassine-frontend/dist/hashassine-frontend |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
target | ||
neardev | ||
contract/target | ||
contract/neardev | ||
frontend/node_modules |
Oops, something went wrong.