Compare commits

..

8 Commits

4 changed files with 32 additions and 19 deletions
+15 -17
View File
@@ -1,6 +1,3 @@
# Adapted from https://github.com/joshka/github-workflows/blob/main/.github/workflows/rust-release-plz.yml
# Thanks to joshka for permission to use this template!
name: Create release name: Create release
permissions: permissions:
@@ -61,6 +58,15 @@ jobs:
run: | run: |
git commit --amend --no-edit -m "$(git log -1 --pretty=%B) [skip ci]" git commit --amend --no-edit -m "$(git log -1 --pretty=%B) [skip ci]"
- name: Install Rust stable
uses: dtolnay/rust-toolchain@stable
- name: Update the Cargo.lock
run: |
cargo update
git add Cargo.lock
git commit -m "chore: Bump the version in Cargo.lock"
- name: Get the new version tag - name: Get the new version tag
id: version id: version
run: | run: |
@@ -87,8 +93,8 @@ jobs:
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with: with:
tag_name: ${{ env.version }} tag_name: v${{ env.version }}
name: "Release ${{ env.version }}" name: "Release v${{ env.version }}"
body: ${{ env.changelog_body }} body: ${{ env.changelog_body }}
draft: false draft: false
prerelease: false prerelease: false
@@ -97,14 +103,11 @@ jobs:
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: | run: |
git tag v${{ env.version }}
git push origin --follow-tags git push origin --follow-tags
release-plz: release-crate:
# see https://release-plz.ieni.dev/docs/github
# for more information
needs: bump needs: bump
name: Release-plz name: Release Crate
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Check if actor is repository owner - name: Check if actor is repository owner
@@ -119,11 +122,6 @@ jobs:
fetch-depth: 0 fetch-depth: 0
- name: Install Rust stable - name: Install Rust stable
uses: dtolnay/rust-toolchain@stable uses: dtolnay/rust-toolchain@stable
- name: Run release-plz - uses: katyo/publish-crates@v2
uses: MarcoIeni/release-plz-action@v0.5
with: with:
command: release registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}
tag_name: ${{ env.VERSION }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
+15
View File
@@ -5,6 +5,21 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## v0.3.2 (2024-11-26)
### Fix
- **ci**: Updated the Cargo.lock file [skip ci]
- **ci**: Use a different GitHub action to release the crate to Crates.io [skip ci]
- **ci**: Don't manually push the tags and let Commitizen do it [skip ci]
## v0.3.1 (2024-11-26)
### Fix
- **ci**: Don't manually push the tags and let Commitizen do it [skip ci]
- **ci**: Fixed a typo in the version creation on GitHub [skip ci]
## v0.3.0 (2024-11-26) ## v0.3.0 (2024-11-26)
### Feat ### Feat
Generated
+1 -1
View File
@@ -1353,7 +1353,7 @@ dependencies = [
[[package]] [[package]]
name = "managarr" name = "managarr"
version = "0.3.0" version = "0.3.2"
dependencies = [ dependencies = [
"anyhow", "anyhow",
"assert_cmd", "assert_cmd",
+1 -1
View File
@@ -1,6 +1,6 @@
[package] [package]
name = "managarr" name = "managarr"
version = "0.3.0" version = "0.3.2"
authors = ["Alex Clarke <alex.j.tusa@gmail.com>"] authors = ["Alex Clarke <alex.j.tusa@gmail.com>"]
description = "A TUI and CLI to manage your Servarrs" description = "A TUI and CLI to manage your Servarrs"
keywords = ["managarr", "ratatui", "dashboard", "servarr", "tui"] keywords = ["managarr", "ratatui", "dashboard", "servarr", "tui"]