Skip to content

Commit bb60af7

Browse files
author
Ramon Moraes
committed
first attempt to add support to gh release
1 parent ee1c4d6 commit bb60af7

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.github/workflows/ci.yml

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

1314
jobs:
1415
test_and_publish:
@@ -20,6 +21,13 @@ jobs:
2021
- name: Run tests
2122
run: cargo test --verbose
2223
- name: Build
23-
run: cargo build --verbose
24-
- name: Publish
24+
run: cargo build --profile release --verbose
25+
- name: Publish to crates.io
2526
run: cargo caw-publish
27+
- name: Creating a zip file
28+
run: zip http_status_code.zip target/release/http_status_code
29+
- name: Publish to Github Release
30+
uses: softprops/action-gh-release@v2
31+
with:
32+
files: http_status_code.zip
33+

0 commit comments

Comments
 (0)