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/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: