Skip to content
This repository has been archived by the owner on Apr 22, 2024. It is now read-only.

Commit

Permalink
deploy contracts when ci changes
Browse files Browse the repository at this point in the history
  • Loading branch information
YBadiss committed Mar 4, 2024
1 parent 1291cf5 commit 4980f2f
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/deploy-proxy-contract.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ jobs:
changes:
runs-on: ubuntu-latest
outputs:
ci: ${{ steps.changes.outputs.ci }}
main-contract: ${{ steps.changes.outputs.main-contract }}
nft-contract: ${{ steps.changes.outputs.nft-contract }}
sft-contract: ${{ steps.changes.outputs.sft-contract }}
Expand All @@ -16,6 +17,8 @@ jobs:
id: changes
with:
filters: |
ci:
- '.github/workflows/deploy-proxy-contract.yml'
main-contract:
- 'fc-community-contracts/src/FactchainCommunity.sol'
nft-contract:
Expand All @@ -33,7 +36,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Deploy new implementation of main contract
if: needs.changes.outputs.main-contract == 'true'
if: needs.changes.outputs.main-contract == 'true' || needs.changes.outputs.ci == 'true'
uses: YBadiss/deploy-contract/proxy@v2
with:
implementation-contract-name: 'FactchainCommunity'
Expand All @@ -48,7 +51,7 @@ jobs:
etherscan-url: 'https://sepolia.etherscan.io'
etherscan-api-key: ${{ secrets.ETHERSCAN_SEPOLIA_API_KEY }}
- name: Deploy new implementation of SFT contract
if: needs.changes.outputs.sft-contract == 'true'
if: needs.changes.outputs.sft-contract == 'true' || needs.changes.outputs.ci == 'true'
id: sft
uses: YBadiss/deploy-contract/proxy@v2
with:
Expand All @@ -64,7 +67,7 @@ jobs:
etherscan-url: 'https://sepolia.etherscan.io'
etherscan-api-key: ${{ secrets.ETHERSCAN_SEPOLIA_API_KEY }}
- name: Deploy new implementation of NFT contract
if: needs.changes.outputs.nft-contract == 'true'
if: needs.changes.outputs.nft-contract == 'true' || needs.changes.outputs.ci == 'true'
uses: YBadiss/deploy-contract/proxy@v2
with:
implementation-contract-name: 'FactchainNFT'
Expand All @@ -79,7 +82,7 @@ jobs:
etherscan-url: 'https://sepolia.etherscan.io'
etherscan-api-key: ${{ secrets.ETHERSCAN_SEPOLIA_API_KEY }}
- name: Deploy new implementation of X contract
if: needs.changes.outputs.x-contract == 'true'
if: needs.changes.outputs.x-contract == 'true' || needs.changes.outputs.ci == 'true'
uses: YBadiss/deploy-contract/proxy@v2
with:
implementation-contract-name: 'XCommunityNotes'
Expand Down

0 comments on commit 4980f2f

Please sign in to comment.