diff --git a/.github/workflows/deploy-prod-mainnet-devhub.yml b/.github/workflows/deploy-prod-mainnet-devhub.yml index f793cc3cf..6c69ac178 100644 --- a/.github/workflows/deploy-prod-mainnet-devhub.yml +++ b/.github/workflows/deploy-prod-mainnet-devhub.yml @@ -1,12 +1,11 @@ name: Deploy Widgets to Mainnet - Devhub on: - pull_request: push: branches: [main] jobs: deploy-widgets: runs-on: ubuntu-latest - name: Deploy ( or diff from PR ) - Devhub + name: Deploy environment: devhub.near defaults: run: @@ -35,11 +34,4 @@ jobs: - name: Deploy widgets run: | - BRANCH="$(git rev-parse --abbrev-ref HEAD)" - echo "on branch $BRANCH" - if [[ "$BRANCH" != "main" ]]; then - echo "Not on main branch, dry run by diff with devhub.near" - npm run dry-run:devhub - else - bos components deploy '${{ vars.NEAR_SOCIAL_ACCOUNT_ID }}' sign-as '${{ vars.NEAR_SOCIAL_ACCOUNT_ID }}' network-config mainnet sign-with-plaintext-private-key --signer-public-key '${{ vars.NEAR_SOCIAL_ACCOUNT_PUBLIC_KEY }}' --signer-private-key '${{ secrets.NEAR_SOCIAL_ACCOUNT_PRIVATE_KEY }}' send - fi + bos components deploy '${{ vars.NEAR_SOCIAL_ACCOUNT_ID }}' sign-as '${{ vars.NEAR_SOCIAL_ACCOUNT_ID }}' network-config mainnet sign-with-plaintext-private-key --signer-public-key '${{ vars.NEAR_SOCIAL_ACCOUNT_PUBLIC_KEY }}' --signer-private-key '${{ secrets.NEAR_SOCIAL_ACCOUNT_PRIVATE_KEY }}' send diff --git a/.github/workflows/dry-run.yml b/.github/workflows/dry-run.yml index 5b650a06b..0d3b87d52 100644 --- a/.github/workflows/dry-run.yml +++ b/.github/workflows/dry-run.yml @@ -1,4 +1,4 @@ -name: Dry-run Devhub, Events and Infrastructure +name: Dry-run on: pull_request: diff --git a/.github/workflows/release-instances.yml b/.github/workflows/release-instances.yml index 600e2b4c6..e8f036c42 100644 --- a/.github/workflows/release-instances.yml +++ b/.github/workflows/release-instances.yml @@ -27,4 +27,4 @@ jobs: - name: Deploy widgets run: | - ${{ matrix.target_account.deploy_command }} -- '${{ vars.NEAR_SOCIAL_ACCOUNT_ID }}' sign-as '${{ vars.NEAR_SOCIAL_ACCOUNT_ID }}' network-config mainnet sign-with-plaintext-private-key --signer-public-key '${{ vars.NEAR_SOCIAL_ACCOUNT_PUBLIC_KEY }}' --signer-private-key '${{ secrets.NEAR_SOCIAL_ACCOUNT_PRIVATE_KEY }}' display + ${{ matrix.target_account.deploy_command }} -- '${{ vars.NEAR_SOCIAL_ACCOUNT_ID }}' sign-as '${{ vars.NEAR_SOCIAL_ACCOUNT_ID }}' network-config mainnet sign-with-plaintext-private-key --signer-public-key '${{ vars.NEAR_SOCIAL_ACCOUNT_PUBLIC_KEY }}' --signer-private-key '${{ secrets.NEAR_SOCIAL_ACCOUNT_PRIVATE_KEY }}' send