File tree Expand file tree Collapse file tree 2 files changed +12
-10
lines changed
Expand file tree Collapse file tree 2 files changed +12
-10
lines changed Original file line number Diff line number Diff line change 99env :
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
1414jobs :
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
Original file line number Diff line number Diff line change 1+ # Release Notes for v0.1.1
2+
3+ testing Github Release CI workflow
You can’t perform that action at this time.
0 commit comments