We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c0e3525 commit 3edc40dCopy full SHA for 3edc40d
.github/workflows/release.yml
@@ -17,12 +17,10 @@ jobs:
17
uses: actions/setup-go@v2
18
with:
19
go-version: 1.17
20
- - name: Replace date string and version string
+ - name: Replace version string
21
run: |
22
export VERSION=${{ github.ref_name }}
23
- export BUILD_TIME=`TZ=":Europe/Zurich" date`
24
- sed -i'.bak' "s/\$CI_VERSION/$VERSION/g" cf.go
25
- sed -i'.bak' "s/\$CI_BUILD_TIME/$BUILD_TIME/g" cf.go
+ sed -i'.bak' "s/v1\.0\.10/$VERSION/g" cf.go
26
- name: Build
27
28
mkdir -p output
@@ -53,7 +51,7 @@ jobs:
53
51
env:
54
52
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
55
56
- tag_name: v1.0.10
+ tag_name: ${{ github.ref }}
57
release_name: Release ${{ github.ref }}
58
draft: false
59
prerelease: false
0 commit comments