From 4980f2f605655025c068ac2fe498a8ed8c524e3a Mon Sep 17 00:00:00 2001 From: Yacine Badiss Date: Mon, 4 Mar 2024 21:01:21 +0100 Subject: [PATCH] deploy contracts when ci changes --- .github/workflows/deploy-proxy-contract.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deploy-proxy-contract.yml b/.github/workflows/deploy-proxy-contract.yml index 0553bd5a..cdf12f30 100644 --- a/.github/workflows/deploy-proxy-contract.yml +++ b/.github/workflows/deploy-proxy-contract.yml @@ -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 }} @@ -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: @@ -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' @@ -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: @@ -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' @@ -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'