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 || : 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]