Skip to content

Commit

Permalink
feat: add github workflow to auto release, bump up version number
Browse files Browse the repository at this point in the history
  • Loading branch information
Curstantine committed Jan 30, 2024
1 parent ba532c0 commit 33a130a
Show file tree
Hide file tree
Showing 6 changed files with 63 additions and 75 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/release.yml
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/**/*
18 changes: 18 additions & 0 deletions .github/workflows/test.yml
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
73 changes: 0 additions & 73 deletions .gitlab-ci.yml

This file was deleted.

2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
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"

Expand Down
14 changes: 14 additions & 0 deletions dprint.json
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"
]
}

0 comments on commit 33a130a

Please sign in to comment.