-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add github workflow to auto release, bump up version number
- Loading branch information
1 parent
ba532c0
commit 33a130a
Showing
6 changed files
with
63 additions
and
75 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: Release | ||
on: | ||
push: | ||
tags: | ||
- "v*.*.*" | ||
|
||
jobs: | ||
release: | ||
name: Release | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: dtolnay/rust-toolchain@stable | ||
|
||
- name: Build | ||
run: cargo build --release | ||
|
||
- name: Move tab completion files | ||
run: | | ||
mkdir -p sources/completions | ||
mv target/release/osu_helper_script sources/ | ||
mv target/release/tab_completions/_osu_helper_script sources/completions/zsh | ||
mv target/release/tab_completions/osu_helper_script.bash sources/completions/bash | ||
mv target/release/tab_completions/osu_helper_script.fish sources/completions/fish | ||
- name: Create release | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
files: sources/**/* |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
name: Test | ||
on: [push, pull_request] | ||
|
||
jobs: | ||
build: | ||
name: cargo build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: dtolnay/rust-toolchain@stable | ||
- run: cargo build | ||
test: | ||
name: cargo test | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: dtolnay/rust-toolchain@stable | ||
- run: cargo test |
This file was deleted.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "osu_helper_script" | ||
version = "0.1.6" | ||
version = "0.1.7" | ||
edition = "2021" | ||
build = "build.rs" | ||
|
||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"useTabs": true, | ||
"lineWidth": 100, | ||
"indentWidth": 4, | ||
"excludes": [ | ||
"**/*-lock.json" | ||
], | ||
"plugins": [ | ||
"https://plugins.dprint.dev/json-0.19.1.wasm", | ||
"https://plugins.dprint.dev/markdown-0.16.3.wasm", | ||
"https://plugins.dprint.dev/toml-0.6.0.wasm", | ||
"https://plugins.dprint.dev/prettier-0.35.0.json@0df49c4d878bb1051af2fa1d1f69ba6400f4b78633f49baa1f38954a6fd32b40" | ||
] | ||
} |