diff --git a/docs/ferris.png b/.github/docs/ferris.png similarity index 100% rename from docs/ferris.png rename to .github/docs/ferris.png diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml new file mode 100644 index 0000000..cdeea80 --- /dev/null +++ b/.github/workflows/release.yaml @@ -0,0 +1,38 @@ +name: Release + +permissions: + contents: write + +on: + push: + tags: + - v[0-9]+.* + +jobs: + create-release: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: taiki-e/create-gh-release-action@v1 + with: + token: ${{ secrets.GITHUB_TOKEN }} + + upload-assets: + strategy: + matrix: + include: + - target: x86_64-unknown-linux-gnu + os: ubuntu-latest + - target: aarch64-apple-darwin + os: macos-latest + runs-on: ${{ matrix.os }} + steps: + - uses: actions/checkout@v3 + - uses: taiki-e/upload-rust-binary-action@v1 + with: + bin: dlrs + tar: unix + include: LICENSE + checksum: sha256 + target: ${{ matrix.target }} + token: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/Cargo.lock b/Cargo.lock index 5aabcf3..5e02c99 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -115,6 +115,19 @@ version = "0.8.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5827cebf4670468b8772dd191856768aedcb1b0278a04f989f7766351917b9dc" +[[package]] +name = "dlrs" +version = "0.2.0" +dependencies = [ + "clap", + "colored", + "futures", + "regex", + "reqwest", + "serde_json", + "tokio", +] + [[package]] name = "encoding_rs" version = "0.8.31" @@ -691,19 +704,6 @@ dependencies = [ "winreg", ] -[[package]] -name = "rusty-downloader" -version = "0.2.0" -dependencies = [ - "clap", - "colored", - "futures", - "regex", - "reqwest", - "serde_json", - "tokio", -] - [[package]] name = "ryu" version = "1.0.10" diff --git a/README.md b/README.md index 0afcc79..1e49599 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,10 @@

- +

-### Installation and usage +### Usage -Build and run with `cargo`. +Download a [precompiled release](https://github.com/17ms/dlrs/releases) or build from source using `cargo build --release`. ``` USAGE: