Skip to content

Commit

Permalink
Changed tags name for release workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
kompotkot committed Jun 10, 2024
1 parent 9834d58 commit f07832b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 18 deletions.
15 changes: 6 additions & 9 deletions .github/workflows/release-chainprof.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Prepare release
on:
push:
tags:
- 'chainprof/v*'
- 'chainprof-v*'

jobs:
create_release:
Expand All @@ -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:
Expand Down Expand Up @@ -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"
Expand All @@ -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
15 changes: 6 additions & 9 deletions .github/workflows/release-game7.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Prepare release
on:
push:
tags:
- 'game7/v*'
- 'game7-v*'

jobs:
create_release:
Expand All @@ -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:
Expand Down Expand Up @@ -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"
Expand All @@ -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

0 comments on commit f07832b

Please sign in to comment.