feat: update text #140
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Rust | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
env: | |
CARGO_TERM_COLOR: always | |
RELEASE_TAG: 0.5.1-1 # This is the version of the package, it should be updated with every release | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Build | |
run: cargo build --verbose --release | |
- name: Run tests | |
run: cargo test --verbose | |
- name: Create Debian package | |
uses: dominicorsi/[email protected] | |
- name: Upload Netscanner Debian Package (amd64) | |
uses: actions/upload-artifact@v4 | |
with: | |
name: netscanner_${{ env.RELEASE_TAG }}_amd64.deb | |
path: netscanner_${{ env.RELEASE_TAG }}_amd64.deb | |
- name: Release | |
uses: softprops/action-gh-release@v2 | |
if: startsWith(github.ref, 'refs/tags/') | |
with: | |
files: netscanner_${{ env.RELEASE_TAG }}_amd64.deb |