From b17b00831006e643d101fd71705c08d2a64552fa Mon Sep 17 00:00:00 2001 From: Michael Wilson Date: Tue, 26 Mar 2024 09:29:54 -0400 Subject: [PATCH] Attempt to add auto-publishing. This should (hopefully) add in auto-publishing. We'll need to test by seeing if the action works, however. The version has been bumped to 0.1.1 to both test this and publish a new version with the removed ringbuffer dependency. --- .github/workflows/publish.yaml | 22 ++++++++++++++++++++++ CHANGELOG.md | 7 +++++++ Cargo.toml | 3 ++- 3 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/publish.yaml create mode 100644 CHANGELOG.md diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml new file mode 100644 index 0000000..4a49281 --- /dev/null +++ b/.github/workflows/publish.yaml @@ -0,0 +1,22 @@ +name: publish +on: + push: + tags: + - 'v.*' + +jobs: + # Publishes mtrack to crates.io. + publish: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Update apt + run: sudo apt update + - name: Install alsa + run: sudo apt-get install -y libasound2-dev + - uses: dtolnay/rust-toolchain@stable + - uses: Swatinem/rust-cache@v2 + - name: Run publish + env: + CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} + run: cargo publish diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..f5423be --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,7 @@ +# 0.1.1 + +Removal of unneeded ringbuffer dependency. + +# 0.1.0 + +Initial release. diff --git a/Cargo.toml b/Cargo.toml index 32c7e56..9725931 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,7 +2,8 @@ name = "mtrack" description = "A multitrack audio and MIDI player for live performances." license = "GPL-3.0" -version = "0.1.0" +version = "0.1.1" +authors = ["Michael Wilson "] edition = "2021" repository = "https://github.com/mdwn/mtrack" readme = "README.md"