diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 03c771d39..f0450d32d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -47,6 +47,7 @@ jobs: uses: docker/setup-buildx-action@v2 with: install: true + platforms: linux/amd64,linux/arm64 - name: Log in to the registry uses: docker/login-action@v1 diff --git a/.github/workflows/notify.yml b/.github/workflows/notify.yml index 8551536b6..21ff132eb 100644 --- a/.github/workflows/notify.yml +++ b/.github/workflows/notify.yml @@ -12,9 +12,16 @@ jobs: ACTIONS_ALLOW_UNSECURE_COMMANDS: true steps: - uses: actions/checkout@master + - uses: dorny/paths-filter@v2 + id: filter + with: + filters: | + changelog: + - 'CHANGELOG.md' - name: Set env - run: echo ::set-env name=RELEASE_VERSION::${GITHUB_REF#refs/*/} + run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV - name: telegram notification + if: steps.filter.outputs.changelog == 'true' uses: appleboy/telegram-action@master with: to: ${{ secrets.TELEGRAM_TO }} @@ -23,6 +30,7 @@ jobs: Pytezos ${{ env.RELEASE_VERSION }} has been released 🎉 More info at https://github.com/baking-bad/pytezos/releases/tag/${{ env.RELEASE_VERSION }} - name: slack notification + if: steps.filter.outputs.changelog == 'true' uses: Ilshidur/action-slack@master env: SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 053cdb0bb..dc7c4de95 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Set env - run: echo ::set-env name=RELEASE_VERSION::${GITHUB_REF#refs/*/} + run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV - name: Check out the repo uses: actions/checkout@v3 @@ -30,6 +30,15 @@ jobs: - name: Install project run: make install + - name: Set up QEMU + uses: docker/setup-qemu-action@v2 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v2 + with: + install: true + platforms: linux/amd64,linux/arm64 + - name: Log in to Docker Hub uses: docker/login-action@v1 with: