Skip to content

Commit 0940903

Browse files
Update scanr version to 0.1.7
1 parent ebd5190 commit 0940903

File tree

4 files changed

+40
-63
lines changed

4 files changed

+40
-63
lines changed

.github/workflows/crates.yml

Lines changed: 0 additions & 31 deletions
This file was deleted.

.github/workflows/release.yml

Lines changed: 38 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,50 @@
1-
name: "Release"
1+
name: Release
22

33
on:
4+
push:
5+
tags:
6+
- "v*" # Push events to every tag not containing /
47
workflow_dispatch:
5-
release:
6-
types: [created]
78

89
env:
910
CARGO_TERM_COLOR: always
1011

1112
jobs:
12-
release:
13-
timeout-minutes: 30
14-
name: release ${{ matrix.target }}
13+
build:
1514
runs-on: ubuntu-latest
16-
strategy:
17-
fail-fast: false
18-
matrix:
19-
target:
20-
[
21-
x86_64-pc-windows-gnu,
22-
x86_64-unknown-linux-musl,
23-
x86_64-apple-darwin,
24-
]
15+
16+
steps:
17+
- name: Check out the repository
18+
uses: actions/checkout@v2
19+
20+
- name: Set up Rust
21+
uses: actions-rs/toolchain@v1
22+
with:
23+
toolchain: stable
24+
25+
- name: Build the project
26+
run: cargo build --release
27+
28+
- name: Upload artifact
29+
uses: actions/upload-artifact@v2
30+
with:
31+
name: release-binary
32+
path: target/release/
33+
34+
publish:
35+
needs: build
36+
runs-on: ubuntu-latest
37+
2538
steps:
26-
- uses: actions/checkout@v4
27-
- uses: dtolnay/rust-toolchain@stable
28-
- name: Cache Crates
29-
uses: actions/cache@v3
39+
- name: Check out the repository
40+
uses: actions/checkout@v2
41+
42+
- name: Set up Rust
43+
uses: actions-rs/toolchain@v1
3044
with:
31-
path: |
32-
./target
33-
~/.cargo
34-
key: ${{ runner.os }}-${{ hashFiles('Cargo.lock') }}
35-
restore-keys: |
36-
${{ runner.os }}
37-
- name: Compile and release
38-
uses: rust-build/rust-build.action@latest
45+
toolchain: stable
46+
47+
- name: Publish to crates.io
3948
env:
40-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
41-
RUSTTARGET: ${{ matrix.target }}
42-
EXTRA_FILES: "README.md"
49+
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
50+
run: cargo publish

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 = "scanr"
3-
version = "0.1.6"
3+
version = "0.1.7"
44
edition = "2021"
55
authors = ["Triet Trinh <[email protected]>"]
66
description = "ScanR: A lightweight, fast, and configurable port scanner built in Rust for reliable multi-platform network scanning."

0 commit comments

Comments
 (0)