Skip to content

Commit 3edc40d

Browse files
committed
Update release.yml
1 parent c0e3525 commit 3edc40d

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

.github/workflows/release.yml

+3-5
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,10 @@ jobs:
1717
uses: actions/setup-go@v2
1818
with:
1919
go-version: 1.17
20-
- name: Replace date string and version string
20+
- name: Replace version string
2121
run: |
2222
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
23+
sed -i'.bak' "s/v1\.0\.10/$VERSION/g" cf.go
2624
- name: Build
2725
run: |
2826
mkdir -p output
@@ -53,7 +51,7 @@ jobs:
5351
env:
5452
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
5553
with:
56-
tag_name: v1.0.10
54+
tag_name: ${{ github.ref }}
5755
release_name: Release ${{ github.ref }}
5856
draft: false
5957
prerelease: false

0 commit comments

Comments
 (0)