Skip to content

Commit d4c8e58

Browse files
committed
langsam kommt die verzweiflung
1 parent 86bba61 commit d4c8e58

1 file changed

Lines changed: 2 additions & 23 deletions

File tree

.github/workflows/release.yaml

Lines changed: 2 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -20,37 +20,16 @@ jobs:
2020
override: true
2121
profile: minimal
2222

23-
- name: Get short commit hash
24-
id: vars
25-
run: echo "SHORT_SHA=$(git rev-parse --short HEAD)" >> $GITHUB_ENV
26-
27-
- name: Create Git tag
28-
run: |
29-
TAG="v1.0.0-${SHORT_SHA}"
30-
git config user.name "github-actions[bot]"
31-
git config user.email "github-actions[bot]@users.noreply.github.com"
32-
git tag $TAG
33-
git push https://x-access-token:${GH_TOKEN}@github.com/${GITHUB_REPOSITORY}.git $TAG
34-
env:
35-
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
36-
3723
# Build release
3824
- name: Build release
3925
run: cargo build --release
4026

4127
# Create GitHub Release
4228
- name: Create GitHub Release
43-
id: create_release
44-
uses: softprops/action-gh-release@v1
45-
with:
46-
tag_name: v1.0.0
47-
env:
48-
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
49-
50-
# Upload binary
51-
- name: Upload binary
5229
uses: softprops/action-gh-release@v1
5330
with:
5431
files: target/release/rusty-clock
32+
generate_release_notes: true
33+
tag_name: ${{ github.run_number}}
5534
env:
5635
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}

0 commit comments

Comments
 (0)