Skip to content

Commit

Permalink
1.8.5 added a log for debug purpose
Browse files Browse the repository at this point in the history
  • Loading branch information
bchamagne committed Apr 22, 2024
1 parent d633d0a commit aa9dd92
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 34 deletions.
11 changes: 5 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,13 @@ jobs:

- name: Deploy to AEweb
id: deploy
uses: archethic-foundation/aeweb-github-action@v1.8.3
uses: archethic-foundation/aeweb-github-action@v1.8.5
with:
seed: ${{ secrets.ARCH_BASE_SEED }}
endpoint: "https://testnet.archethic.net" #Endpoint you want to deploy to
path: "./web_site_test" #Path to the folder you want to deploy
sendTransactionTimeout: 60000
percentageOfConfirmations: 50
```
In your Repo, go to Settings -> Secrets and click on "New Secret". Then enter _ARCH_BASE_SEED_ as the seed to your transaction chain.
Expand All @@ -51,7 +53,7 @@ jobs:

- name: Deploy to AEweb
id: deploy
uses: archethic-foundation/aeweb-github-action@v1.8.0
uses: archethic-foundation/aeweb-github-action@v1.8.5
with:
seed: ${{ secrets.ARCH_BASE_SEED }}
endpoint: "https://testnet.archethic.net" #Endpoint you want to deploy to
Expand Down Expand Up @@ -80,7 +82,7 @@ jobs:

- name: Deploy to AEweb
id: deploy
uses: archethic-foundation/aeweb-github-action@v1.8.0
uses: archethic-foundation/aeweb-github-action@v1.8.5
with:
seed: ${{ secrets.ARCH_BASE_SEED }}
endpoint: "https://testnet.archethic.net" #Endpoint you want to deploy to
Expand All @@ -98,9 +100,6 @@ In your Repo, go to Settings -> Secrets and click on "New Secret". Then enter _S
Be careful, the action does not yet support max fees limitation.
More your website will be big and how many updates you will do, more you will need to fund the website's chain.
SEND_TRANSACTION_TIMEOUT (default=60000) is used to tweak the timeout.
PERCENTAGE_OF_CONFIRMATIONS (default=50) is used to tweak the percent of successful confirmations to set a transaction as successful.
## Development
To test the development of the Github actions, you can use docker container.
Expand Down
3 changes: 3 additions & 0 deletions aeweb_action/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ const SEND_TRANSACTION_TIMEOUT =
const PERCENTAGE_OF_CONFIRMATIONS =
process.env["INPUT_PERCENTAGEOFCONFIRMATIONS"] || 50;

console.log("SEND_TRANSACTION_TIMEOUT", SEND_TRANSACTION_TIMEOUT);
console.log("PERCENTAGE_OF_CONFIRMATIONS", PERCENTAGE_OF_CONFIRMATIONS);

if (!SEED) {
console.log("INPUT_SEED argument needs to be provided");
process.exit(1);
Expand Down
56 changes: 28 additions & 28 deletions aeweb_action/package.json
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@
{
"name": "deploy-aeweb-github-actions",
"type": "module",
"version": "1.8.3",
"description": "",
"main": "index.js",
"scripts": {
"start": "node ."
},
"repository": {
"type": "git",
"url": "git+https://github.com/archethic-foundation/aeweb-github-action.git"
},
"keywords": [],
"author": "Archethic Foundation",
"license": "AGPL3",
"bugs": {
"url": "https://github.com/archethic-foundation/aeweb-github-action/issues"
},
"homepage": "https://github.com/archethic-foundation/aeweb-github-action#readme",
"dependencies": {
"@archethicjs/aeweb-cli": "^0.7.3",
"@archethicjs/sdk": "^1.19.0",
"bip39": "^3.1.0",
"glob": "^8.1.0",
"lodash": "^4.17.21",
"node-fetch": "^3.3.0",
"parse-gitignore": "^2.0.0"
}
"name": "deploy-aeweb-github-actions",
"type": "module",
"version": "1.8.5",
"description": "",
"main": "index.js",
"scripts": {
"start": "node ."
},
"repository": {
"type": "git",
"url": "git+https://github.com/archethic-foundation/aeweb-github-action.git"
},
"keywords": [],
"author": "Archethic Foundation",
"license": "AGPL3",
"bugs": {
"url": "https://github.com/archethic-foundation/aeweb-github-action/issues"
},
"homepage": "https://github.com/archethic-foundation/aeweb-github-action#readme",
"dependencies": {
"@archethicjs/aeweb-cli": "^0.7.3",
"@archethicjs/sdk": "^1.19.0",
"bip39": "^3.1.0",
"glob": "^8.1.0",
"lodash": "^4.17.21",
"node-fetch": "^3.3.0",
"parse-gitignore": "^2.0.0"
}
}

0 comments on commit aa9dd92

Please sign in to comment.