From fe68f728ac92707c9cdf6c4fbe9a73626221c800 Mon Sep 17 00:00:00 2001 From: Andreas Backx Date: Mon, 18 Apr 2022 17:58:46 +0100 Subject: [PATCH] Added Cargo Publish GitHub Action. * Added more Cargo.toml metadata and formatted it. * Added VS Code settings for Prettier, specifically for YAML. --- .github/workflows/cargo.yml | 22 ++++++++++++++++++++++ .gitignore | 1 + .vscode/settings.json | 3 +++ Cargo.toml | 11 ++++++++--- 4 files changed, 34 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/cargo.yml create mode 100644 .vscode/settings.json diff --git a/.github/workflows/cargo.yml b/.github/workflows/cargo.yml new file mode 100644 index 0000000..1fd5bbf --- /dev/null +++ b/.github/workflows/cargo.yml @@ -0,0 +1,22 @@ +name: Cargo Publish + +on: + push: + tags: + - "*" + +jobs: + cargo: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Rust Toolchain + uses: actions-rs/toolchain@v1 + with: + toolchain: stable + override: true + - name: Publish to crates.io + uses: katyo/publish-crates@v1 + with: + registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }} diff --git a/.gitignore b/.gitignore index e2b5fdd..a42e19b 100644 --- a/.gitignore +++ b/.gitignore @@ -97,3 +97,4 @@ $RECYCLE.BIN/ # End of https://www.toptal.com/developers/gitignore/api/rust,linux,windows,macos,visualstudiocode aur/ +*.mp4 diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..28cdc47 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "prettier.tabWidth": 2 +} diff --git a/Cargo.toml b/Cargo.toml index de458b0..b3f0153 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,8 +1,13 @@ [package] -name = "waycorner" -version = "0.1.4" authors = ["Andreas Backx"] +categories = ["command-line-utilities"] +description = "Hot corners for Wayland. Create anchors in the corners of your monitors and execute a command of your choice." edition = "2018" +homepage = "https://github.com/AndreasBackx/waycorner" +keywords = ["wayland", "hot-corners", "swaywm", "wlroots"] +license = "MIT" +name = "waycorner" +version = "0.1.4" [dependencies] anyhow = "1.0" @@ -11,7 +16,7 @@ crossbeam-utils = "0.8.4" env_logger = "0.8.3" log = "0.4.0" regex = "1.5" -serde = { version = "1.0.125", features = ["derive"] } +serde = {version = "1.0.125", features = ["derive"]} smithay-client-toolkit = "0.13.0" tempfile = "3.2.0" toml = "0.5.8"