From f6bc5481fcb4d2c98c8bacb85ae08b0d97c50520 Mon Sep 17 00:00:00 2001 From: Timur Zununbekov Date: Wed, 21 Feb 2024 11:02:18 +0600 Subject: [PATCH] Test bucket creation --- .github/workflows/build-packages.yml | 12 +++++++----- .github/workflows/release.yml | 20 ++++++++++---------- 2 files changed, 17 insertions(+), 15 deletions(-) diff --git a/.github/workflows/build-packages.yml b/.github/workflows/build-packages.yml index 7ee71ae69a..8f61481838 100644 --- a/.github/workflows/build-packages.yml +++ b/.github/workflows/build-packages.yml @@ -6,7 +6,6 @@ on: branches: [master, ci-migration] tags: -# Mage's `GenerateEnvFile` talks to GH API to setup tags, versions, etc. env: GITHUB_OWNER: mysteriumnetwork GITHUB_REPO: node @@ -73,7 +72,7 @@ jobs: matrix: platform: # - PackageLinuxRaspberryImage - # - PackageLinuxAmd64 + - PackageLinuxAmd64 # - PackageLinuxArm # - PackageLinuxDebianAmd64 # - PackageLinuxDebianArm64 @@ -81,8 +80,8 @@ jobs: # - PackageMacOSAmd64 # - PackageMacOSArm64 # - PackageWindowsAmd64 - - PackageAndroid - - PackageAndroidProvider + # - PackageAndroid + # - PackageAndroidProvider steps: - uses: actions/checkout@v4 @@ -95,7 +94,10 @@ jobs: name: env.sh - name: Create bucket - if: contains(github.ref, 'refs/tags') || github.ref == 'refs/heads/master' + if: | + contains(github.ref, 'refs/tags') || + github.ref == 'refs/heads/master' || + github.ref == 'refs/heads/ci-migration' run: | source env.sh go run mage.go -v MakeBucket diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index fdda3b835c..09b2396c97 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -34,9 +34,9 @@ jobs: source env.sh go run mage.go -v ${{ matrix.platform }} - # master only - # - name: Release Go report - # run: bin/release_goreport + - name: Release Go report + if: github.ref == 'refs/heads/master' + run: bin/release_goreport release-tag: runs-on: ubuntu-latest @@ -79,15 +79,15 @@ jobs: with: name: env.sh github-token: ${{ secrets.GITHUB_TOKEN }} - + - name: Remove bucket run: go run mage.go -v RemoveBucket - # master only - # - name: Notify UptimeRobot - # run: | - # if [ "$NIGHTLY_BUILD" = "1" -o "$NIGHTLY_BUILD" = "T" -o "$NIGHTLY_BUILD" = "true" -o "$NIGHTLY_BUILD" = "True" -o "$NIGHTLY_BUILD" = "TRUE" ]; then - # curl -so /dev/null -I "$NIGHTLY_UPTIMEROBOT" - # fi + - name: Notify UptimeRobot + if: github.ref == 'refs/heads/master' + run: | + if [ "$NIGHTLY_BUILD" = "1" -o "$NIGHTLY_BUILD" = "T" -o "$NIGHTLY_BUILD" = "true" -o "$NIGHTLY_BUILD" = "True" -o "$NIGHTLY_BUILD" = "TRUE" ]; then + curl -so /dev/null -I "$NIGHTLY_UPTIMEROBOT" + fi - name: PR Avado run: go run mage.go -v CreateAvadoPR