From f07832b29b9a0d64f5ef02629e7489b0efcbf508 Mon Sep 17 00:00:00 2001 From: kompotkot Date: Mon, 10 Jun 2024 18:37:50 +0000 Subject: [PATCH] Changed tags name for release workflows --- .github/workflows/release-chainprof.yml | 15 ++++++--------- .github/workflows/release-game7.yml | 15 ++++++--------- 2 files changed, 12 insertions(+), 18 deletions(-) diff --git a/.github/workflows/release-chainprof.yml b/.github/workflows/release-chainprof.yml index f76afbea..ac3f7f70 100644 --- a/.github/workflows/release-chainprof.yml +++ b/.github/workflows/release-chainprof.yml @@ -3,7 +3,7 @@ name: Prepare release on: push: tags: - - 'chainprof/v*' + - 'chainprof-v*' jobs: create_release: @@ -15,9 +15,9 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: tag_name: ${{ github.ref }} - release_name: "chainprof ${{ github.ref_name }}" + release_name: "${{ github.ref_name }}" body: | - Version ${{ github.ref_name }} of chainprof + Version ${{ github.ref_name }}. draft: true prerelease: false outputs: @@ -59,15 +59,12 @@ jobs: - name: Build interface with seer run: seer evm generate --package Game7Token --output bindings/Game7Token/Game7Token.go --hardhat web3/artifacts/contracts/Token/Game7Token.sol/Game7Token.json --cli --struct Game7Token - - name: Set version as variable - run: echo "GITHUB_REF_NAME_VERSION=$(echo ${{ github.ref_name }} | cut -d '/' -f 2)" >> $GITHUB_ENV - - name: Build binary for each valid (GOOS, GOARCH) pair env: GOOS: ${{ matrix.os }} GOARCH: ${{ matrix.arch }} run: | - BUILD_DIR="chainprof-${GITHUB_REF_NAME_VERSION}-${GOOS}-${GOARCH}" + BUILD_DIR="${{ github.ref_name }}-${GOOS}-${GOARCH}" EXTENSION="" if [ "$GOOS" = "windows" ]; then EXTENSION=".exe" @@ -82,6 +79,6 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: upload_url: ${{ needs.create_release.outputs.upload_url }} - asset_path: ./chainprof-${GITHUB_REF_NAME_VERSION}-${{ matrix.os }}-${{ matrix.arch }}.zip - asset_name: chainprof-${GITHUB_REF_NAME_VERSION}-${{ matrix.os }}-${{ matrix.arch }}.zip + asset_path: ./${{ github.ref_name }}-${{ matrix.os }}-${{ matrix.arch }}.zip + asset_name: ${{ github.ref_name }}-${{ matrix.os }}-${{ matrix.arch }}.zip asset_content_type: application/zip diff --git a/.github/workflows/release-game7.yml b/.github/workflows/release-game7.yml index 58e02f80..0a230b2f 100644 --- a/.github/workflows/release-game7.yml +++ b/.github/workflows/release-game7.yml @@ -3,7 +3,7 @@ name: Prepare release on: push: tags: - - 'game7/v*' + - 'game7-v*' jobs: create_release: @@ -15,9 +15,9 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: tag_name: ${{ github.ref }} - release_name: "game7 ${{ github.ref_name }}" + release_name: "${{ github.ref_name }}" body: | - Version ${{ github.ref_name }} of game7 + Version ${{ github.ref_name }}. draft: true prerelease: false outputs: @@ -59,15 +59,12 @@ jobs: - name: Build interface with seer run: seer evm generate --package Game7Token --output bindings/Game7Token/Game7Token.go --hardhat web3/artifacts/contracts/Token/Game7Token.sol/Game7Token.json --cli --struct Game7Token - - name: Set version as variable - run: echo "GITHUB_REF_NAME_VERSION=$(echo ${{ github.ref_name }} | cut -d '/' -f 2)" >> $GITHUB_ENV - - name: Build binary for each valid (GOOS, GOARCH) pair env: GOOS: ${{ matrix.os }} GOARCH: ${{ matrix.arch }} run: | - BUILD_DIR="game7-${GITHUB_REF_NAME_VERSION}-${GOOS}-${GOARCH}" + BUILD_DIR="${{ github.ref_name }}-${GOOS}-${GOARCH}" EXTENSION="" if [ "$GOOS" = "windows" ]; then EXTENSION=".exe" @@ -82,6 +79,6 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: upload_url: ${{ needs.create_release.outputs.upload_url }} - asset_path: ./game7-${GITHUB_REF_NAME_VERSION}-${{ matrix.os }}-${{ matrix.arch }}.zip - asset_name: game7-${GITHUB_REF_NAME_VERSION}-${{ matrix.os }}-${{ matrix.arch }}.zip + asset_path: ./${{ github.ref_name }}-${{ matrix.os }}-${{ matrix.arch }}.zip + asset_name: ${{ github.ref_name }}-${{ matrix.os }}-${{ matrix.arch }}.zip asset_content_type: application/zip