-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1809 from ardriveapp/PE-6396-setup-ci-cd-for-perm…
…aweb-deploy PE-6396: Setup CI/CI for permaweb deploy
- Loading branch information
Showing
6 changed files
with
2,667 additions
and
0 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
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 @@ | ||
node_modules |
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,15 @@ | ||
# Deploy to Arweave | ||
|
||
The deployer app here uses [permaweb-deploy](https://github.com/permaweb/permaweb-deploy) to deploy the ArDrive app to Arweave and update the ArNS name to point to the new deployment. Developers can deploy their own versions of the application to arweave using `yarn deploy`. | ||
|
||
Note: The application must be built in the root folder for web prior to using `yarn deploy | ||
|
||
Running `yarn deploy` uses the following environment variables: | ||
|
||
``` | ||
export DEPLOY_ANT_PROCESS_ID=[process id of the ant process to deploy to] | ||
export DEPLOY_ANT_UNDERNAME=[undername to deploy to] | ||
export DEPLOY_KEY=[base64 encoded version of wallet keyfile] | ||
``` | ||
|
||
For local testing, you can create a deploy.sh script with the above values defined, run `source deploy.sh`, then use `yarn deploy`. |
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,15 @@ | ||
{ | ||
"name": "deploy", | ||
"version": "1.0.0", | ||
"description": "Deployer app for deploying ArDrive to arweave using permaweb-deploy", | ||
"main": "index.js", | ||
"license": "AGPL-3.0-only", | ||
"scripts": { | ||
"deploy": "rm -f ../build/web-* && permaweb-deploy --ant-process ${DEPLOY_ANT_PROCESS_ID} --deploy-folder=../build/web --undername=${DEPLOY_ANT_UNDERNAME}" | ||
}, | ||
|
||
"dependencies": { | ||
"permaweb-deploy": "1.1.6" | ||
} | ||
|
||
} |
Oops, something went wrong.