Skip to content

Commit 957a886

Browse files
committed
fix(logger): add missing documentation on logger
1 parent 13beb5c commit 957a886

File tree

5 files changed

+33
-27
lines changed

5 files changed

+33
-27
lines changed

.github/workflows/release.yml

Lines changed: 13 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,6 @@ jobs:
1313
- name: Checkout source code
1414
uses: actions/checkout@v2
1515

16-
- name: Create Release
17-
id: create_release
18-
uses: actions/create-release@v1
19-
env:
20-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
21-
with:
22-
tag_name: ${{ github.ref }}
23-
release_name: ${{ github.ref }}
24-
body: ''
25-
draft: false
26-
prerelease: false
27-
2816
- name: Create Release Notes
2917
uses: actions/github-script@v5
3018
with:
@@ -48,18 +36,20 @@ jobs:
4836
include:
4937
- name: linux
5038
os: ubuntu-latest
51-
artifact_name: 'http-server-linux-${{ github.ref }}'
52-
asset_name: 'http-server-linux'
39+
artifact_name: 'http-server-linux'
40+
asset_name: 'http-server'
5341
asset_extension: '.tar.gz'
42+
5443
- name: macos
5544
os: macos-latest
56-
artifact_name: 'http-server-osx-${{ github.ref }}'
57-
asset_name: 'http-server-osx'
45+
artifact_name: 'http-server-macos'
46+
asset_name: 'http-server'
5847
asset_extension: '.tar.gz'
48+
5949
- name: windows
6050
os: windows-latest
61-
artifact_name: 'http-server-windows-${{ github.ref }}.exe'
62-
asset_name: 'http-server-windows'
51+
artifact_name: 'http-server-windows.exe'
52+
asset_name: 'http-server.exe'
6353
asset_extension: '.zip'
6454
steps:
6555
- name: Checkout source code
@@ -68,8 +58,7 @@ jobs:
6858
- name: Setup environment variables
6959
shell: bash
7060
run: |
71-
RELEASE_VERSION=$(echo ${GITHUB_REF:10})
72-
echo "asset_name=${{ matrix.asset_name }}-${RELEASE_VERSION}${{ matrix.asset_extension }}" >> $GITHUB_ENV
61+
RELEASE_VERSION=$(echo ${GITHUB_REF:10}) >> $GITHUB_ENV
7362
7463
- name: Setup Rust Toolchain
7564
uses: actions-rs/toolchain@v1
@@ -83,19 +72,18 @@ jobs:
8372
- name: Archive release assets
8473
shell: bash
8574
run: |
86-
cp "target/release/${{ matrix.artifact_name }}" "${{ matrix.artifact_name }}"
8775
if [ "${{ matrix.os }}" = "windows-latest" ]; then
88-
7z a "${asset_name}" "${{ matrix.artifact_name }}"
76+
cp target/release/http-server.exe ${{ matrix.asset_name }}
8977
else
90-
tar czf "${asset_name}" "${{ matrix.artifact_name }}"
78+
cp target/release/http-server "${{ matrix.asset_name }}"
9179
fi
9280
9381
- name: Attach builded binaries to release
9482
uses: svenstaro/upload-release-action@v1-release
9583
with:
84+
asset_name: '${{ matrix.os }}http-server'
85+
file: '${{ matrix.asset_name }}'
9686
repo_token: ${{ secrets.GITHUB_TOKEN }}
97-
file: http-server*${{ matrix.asset_extension }}
98-
file_glob: true
9987
tag: ${{ github.ref }}
10088

10189
publish-crate:

CHANGELOG.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,22 @@
22

33
<Empty>
44

5+
<a name="v0.6.0"></a>
6+
## v0.6.0 (2021-12-30)
7+
8+
> Requires Rust: rustc 1.56.1 (59eed8a2a 2021-11-01)
9+
10+
#### Feature
11+
12+
* Implements logging support using the `--logger` flag.
13+
* Attach artifacts for Linux, MacOS and Windows on GitHub Releases.
14+
Kudos to @Emilgardis for openning the issue! [ISSUE#92](https://github.com/EstebanBorai/http-server/issues/92)
15+
16+
#### Fixes
17+
18+
* Update dependencies. Now dependencies are being updated by dependabot every
19+
monday.
20+
521
<a name="v0.5.6"></a>
622
## v0.5.6 (2021-10-03)
723

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "http-server"
3-
version = "0.5.7"
3+
version = "0.6.0"
44
authors = ["Esteban Borai <estebanborai@gmail.com>"]
55
edition = "2018"
66
description = "Simple and configurable command-line HTTP server"

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ CORS | Cross-Origin-Resource-Sharing headers support. Refer to [CORS](https://gi
5353
Compression | GZip compression for HTTP Response Bodies. Refer to [Compression](https://github.com/EstebanBorai/http-server#compression) reference | Disabled
5454
Verbose | Print server details when running. This doesn't include any logging capabilities. | Disabled
5555
Basic Authentication | Authorize requests using Basic Authentication. Refer to [Basic Authentication](https://github.com/EstebanBorai/http-server#basic-authentication) | Disabled
56+
Logger | Prints HTTP request and response details to stdout | Disabled
5657

5758
## Usage
5859

@@ -73,6 +74,7 @@ Name | Short | Long | Description
7374
Cross-Origin Resource Sharing | N/A | `--cors` | Enable Cross-Origin Resource Sharing allowing any origin
7475
GZip Compression | N/A | `--gzip` | Enable GZip compression for responses
7576
Help | N/A | `--help` | Prints help information
77+
Logger | N/A | `--logger` | Prints HTTP request and response details to stdout
7678
Version | `-V` | `--version` | Prints version information
7779
Verbose | `-v` | `--verbose` | Prints output to console
7880

0 commit comments

Comments
 (0)