Skip to content

Commit 82f2e29

Browse files
committed
testing new ci step
1 parent 5e1bf16 commit 82f2e29

File tree

2 files changed

+12
-10
lines changed

2 files changed

+12
-10
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
env:
1010
CARGO_TERM_COLOR: always
1111
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
12-
# GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
12+
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
1313

1414
jobs:
1515
test_and_publish:
@@ -22,12 +22,11 @@ jobs:
2222
run: cargo test
2323
- name: Build
2424
run: cargo build --profile release
25-
- name: Publish to crates.io
26-
run: cargo caw-publish
27-
# - name: Creating a zip file
28-
# run: zip http_status_code_check.zip target/release/http_status_code_check
29-
# - name: Publish to Github Release
30-
# uses: softprops/action-gh-release@v2
31-
# with:
32-
# files: http_status_code_check.zip
33-
# tag_name: ${{ steps.vars.cargo_pkg_version }}
25+
#- name: Publish to crates.io
26+
# run: cargo caw-publish
27+
- name: Publish to Github Releases
28+
env:
29+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
30+
run: |
31+
ver=$(cat Cargo.toml | grep -e '^version = ".*"$' | sed 's/version = "\(.*\)"/\1/')
32+
gh release create -d --title v$ver --notes-file RELEASE.md $ver target/release/http_status_code_check

RELEASE.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Release Notes for v0.1.1
2+
3+
testing Github Release CI workflow

0 commit comments

Comments
 (0)