From 75f77e8b7d4d30f58952f14532ac130bd51d0a59 Mon Sep 17 00:00:00 2001 From: NotAShelf Date: Fri, 2 May 2025 11:29:05 +0300 Subject: [PATCH 1/2] chore: 1.0.0 --- Cargo.lock | 2 +- Cargo.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index fe88725..2eaaf07 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -617,7 +617,7 @@ checksum = "877a4ace8713b0bcf2a4e7eec82529c029f1d0619886d18145fea96c3ffe5c0f" [[package]] name = "eris" -version = "0.1.0" +version = "1.0.0" dependencies = [ "actix-web", "chrono", diff --git a/Cargo.toml b/Cargo.toml index 7efec6b..42cc24b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "eris" -version = "0.1.0" +version = "1.0.0" edition = "2024" [dependencies] From 6f6a60f66764bc1550df6d3e75bd7c4e340cb693 Mon Sep 17 00:00:00 2001 From: NotAShelf Date: Fri, 2 May 2025 11:32:45 +0300 Subject: [PATCH 2/2] ci: automatically tag releases --- .github/workflows/tag.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/tag.yml diff --git a/.github/workflows/tag.yml b/.github/workflows/tag.yml new file mode 100644 index 0000000..d3ce8ab --- /dev/null +++ b/.github/workflows/tag.yml @@ -0,0 +1,31 @@ +name: Tag latest version + +on: + workflow_dispatch: + push: + branches: [ main ] + +concurrency: tag + +jobs: + tag-release: + runs-on: ubuntu-latest + steps: + - uses: cachix/install-nix-action@master + with: + github_access_token: ${{ secrets.GITHUB_TOKEN }} + + - name: Checkout + uses: actions/checkout@v4 + + - name: Read version + run: | + echo -n "_version=v" >> "$GITHUB_ENV" + nix run nixpkgs#fq -- -r ".package.version" Cargo.toml >> "$GITHUB_ENV" + cat "$GITHUB_ENV" + + - name: Tag + run: | + set -x + git tag $version + git push --tags || :