Skip to content

Commit

Permalink
change all workflows to manual dispatch
Browse files Browse the repository at this point in the history
  • Loading branch information
kent-3 committed Aug 3, 2024
1 parent aa04745 commit 4cf5ea0
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 28 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/Deploy.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
name: Deployment

on:
push:
branches:
- main
paths-ignore:
- 'README.md'
workflow_dispatch:
# push:
# branches:
# - main
# paths-ignore:
# - 'README.md'

jobs:
Deploy-to-main:

runs-on: ubuntu-latest

steps:
Expand Down Expand Up @@ -91,7 +91,7 @@ jobs:
ETH_PRIVATE_KEY: ${{secrets.ETH_PRIVATE_KEY}}
ETHERSCAN_KEY: ${{secrets.ETHERSCAN_KEY}}
SECRET_GATEWAY_ETH_ADDRESS: ${{env.SECRET_GATEWAY_ETH_ADDRESS}}
run: |
run: |
forge script script/DeployScript.s.sol:DeployScript --rpc-url "$INFURA_API_URL" --private-key "$ETH_PRIVATE_KEY" --etherscan-api-key "$ETHERSCAN_KEY" --broadcast --verify --retries 10 -vvvv
echo "ETH_GATEWAY_ADDRESS=$(jq -r '.transactions[1].contractAddress' /home/runner/work/TNLS/TNLS/public-gateway/broadcast/DeployScript.s.sol/5/run-latest.json)" >> $GITHUB_ENV
echo "ETH_CLIENT_ADDRESS=$(jq -r '.transactions[2].contractAddress' /home/runner/work/TNLS/TNLS/public-gateway/broadcast/DeployScript.s.sol/5/run-latest.json)" >> $GITHUB_ENV
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/Foundry_tests.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
name: Foundry Tests
on:
push:
paths:
- 'public-gateway/**'
workflow_dispatch:
# push:
# paths:
# - 'public-gateway/**'

jobs:
tests:
Expand All @@ -27,4 +28,4 @@ jobs:
run: forge test -vvv

- name: Check gas snapshots
run: forge snapshot --check
run: forge snapshot --check
12 changes: 5 additions & 7 deletions .github/workflows/Python_tests.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
name: Python package

on:
push:
paths:
- 'TNLS-Relayers/**'
- '.github/workflows/Python_tests.yml'

workflow_dispatch:
# push:
# paths:
# - 'TNLS-Relayers/**'
# - '.github/workflows/Python_tests.yml'

jobs:
build-and-test-python:

runs-on: ubuntu-latest

steps:
Expand Down Expand Up @@ -54,7 +53,6 @@ jobs:
chmod +x ./upload_scrt_contract.sh
SGX_MODE=SW ./upload_scrt_contract.sh
- name: Test with pytest
working-directory: ./TNLS-Relayers
run: |
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/Secret_credit_score_tests.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
name: Secret Credit Score

on:
push:
paths:
- 'TNLS-Samples/credit-score/**'
workflow_dispatch:
# push:
# paths:
# - 'TNLS-Samples/credit-score/**'

jobs:
credit_score_tests:
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/Secret_gateway_tests.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
name: Secret Gateway

on:
push:
paths:
- 'TNLS-Gateways/secret/**'
workflow_dispatch:
# push:
# paths:
# - 'TNLS-Gateways/secret/**'

jobs:
secret_gateway_tests:
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/Webserver_only_deploy.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
name: Deployment-Webserver

on:
push:
branches:
- nonexistent-branch
workflow_dispatch:
# push:
# branches:
# - nonexistent-branch

jobs:
Deploy-webserver-to-main:

runs-on: ubuntu-latest

steps:
Expand Down

0 comments on commit 4cf5ea0

Please sign in to comment.