diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c393b54d5e..565047954f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -10,10 +10,17 @@ on: # for debug purposes only branches: [ci-migration] +# env: + # RELEASE_BUILD: ${{ contains(github.ref, 'refs/tags/v') && 'true' || 'false' }} + # SNAPSHOT_BUILD: ${{ github.ref == 'refs/heads/master' && 'true' || 'false' }} + # RC_BUILD: ${{ github.ref_type == 'tag' && endsWith(github.ref, '-rc') && 'true' || 'false' }} + # BUILD_VERSION: + env: - RELEASE_BUILD: false - SNAPSHOT_BUILD: false - BUILD_VERSION: ${{ github.sha }} + GITHUB_OWNER: mysteriumnetwork + GITHUB_REPO: node + GITHUB_SNAPSHOT_REPO: node-builds + GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }} jobs: build-packages: @@ -46,6 +53,9 @@ jobs: uses: actions/setup-go@v4 with: go-version: '1.21.x' + - name: Generate Env + run: go run mage.go -v GenerateEnvFile + - name: Setup FPM run: | sudo apt-get install ruby-dev build-essential @@ -55,4 +65,6 @@ jobs: env: AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} - run: go run mage.go -v ${{ matrix.platform }} + run: | + source build/env.sh + go run mage.go -v ${{ matrix.platform }}