Skip to content

Commit

Permalink
Added Cargo Publish GitHub Action.
Browse files Browse the repository at this point in the history
* Added more Cargo.toml metadata and formatted it.
* Added VS Code settings for Prettier, specifically for YAML.
  • Loading branch information
AndreasBackx committed Apr 18, 2022
1 parent 57f7c9b commit fe68f72
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 3 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/cargo.yml
Original file line number Diff line number Diff line change
@@ -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 }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -97,3 +97,4 @@ $RECYCLE.BIN/
# End of https://www.toptal.com/developers/gitignore/api/rust,linux,windows,macos,visualstudiocode

aur/
*.mp4
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"prettier.tabWidth": 2
}
11 changes: 8 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand All @@ -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"
Expand Down

0 comments on commit fe68f72

Please sign in to comment.