diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d1019a3..168010c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -73,6 +73,9 @@ jobs: if: github.ref_type == 'tag' needs: - build + # Required to publish a release + permissions: + contents: write steps: - uses: actions/checkout@v4 - name: Install rust @@ -100,7 +103,6 @@ jobs: uses: softprops/action-gh-release@v2 with: body_path: release.txt - token: ${{ secrets.PAT_GITHUB }} files: | floki*.zip floki*.tar.gz diff --git a/CHANGELOG.md b/CHANGELOG.md index 0ca3835..b01f69b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,6 +17,11 @@ Status: Available for use ### Fixed +## [2.0.1] - 2024-05-15 + +### Fixed +- Fix publishing releases + ## [2.0.0] - 2024-05-15 ### Breaking Changes @@ -357,7 +362,8 @@ Status: Available for use - Initial primitive version ### Changed -[unreleased]: https://github.com/Metaswitch/floki/compare/2.0.0...HEAD +[unreleased]: https://github.com/Metaswitch/floki/compare/2.0.1...HEAD +[2.0.1]: https://github.com/Metaswitch/floki/compare/2.0.0...2.0.1 [2.0.0]: https://github.com/Metaswitch/floki/compare/1.2.1...2.0.0 [1.2.1]: https://github.com/Metaswitch/floki/compare/1.2.0...1.2.1 [1.2.0]: https://github.com/Metaswitch/floki/compare/1.1.0...1.2.0 diff --git a/Cargo.lock b/Cargo.lock index ecd073a..56035d7 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -303,7 +303,7 @@ checksum = "25cbce373ec4653f1a01a31e8a5e5ec0c622dc27ff9c4e6606eefef5cbbed4a5" [[package]] name = "floki" -version = "2.0.0" +version = "2.0.1" dependencies = [ "anyhow", "atty", diff --git a/Cargo.toml b/Cargo.toml index c5cc45d..cb2c512 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -8,7 +8,7 @@ keywords = ["docker"] categories = ["command-line-utilities"] license = "MIT" -version = "2.0.0" +version = "2.0.1" authors = ["Richard Lupton ", "Max Dymond "] edition = '2018' diff --git a/README.md b/README.md index b8337ae..deec31f 100644 --- a/README.md +++ b/README.md @@ -70,14 +70,14 @@ Precompiled binaries can be downloaded from the releases page (for linux and OSX To obtain `curl` and extract the latest linux binary directly in your shell, run ```shell -$ curl -L https://github.com/Metaswitch/floki/releases/download/2.0.0/floki-2.0.0-linux.tar.gz | tar xzvf - +$ curl -L https://github.com/Metaswitch/floki/releases/download/2.0.1/floki-2.0.1-linux.tar.gz | tar xzvf - ``` You should be able to run `floki` from your working directory: ```shell $ ./floki --version -floki 2.0.0 +floki 2.0.1 ``` Move it onto your path to run it from anywhere. E.g. diff --git a/announce.sh b/announce.sh index bb46378..77e6fa9 100755 --- a/announce.sh +++ b/announce.sh @@ -2,7 +2,7 @@ echo "Announce changes to the world!" -VERSION=$(tomlq -r '.package.version' Cargo.toml) +VERSION=$(cargo get package.version) echo "Version: $VERSION" docker run \ diff --git a/docs/content/documentation/getting-started.md b/docs/content/documentation/getting-started.md index 3ac2dd8..c361a39 100644 --- a/docs/content/documentation/getting-started.md +++ b/docs/content/documentation/getting-started.md @@ -25,7 +25,7 @@ Precompiled binaries for linux and OSX can be downloaded from the [releases](htt For example, to obtain the latest binary with `curl` and extract it, run ```shell -$ curl -L https://github.com/Metaswitch/floki/releases/download/2.0.0/floki-2.0.0-linux.tar.gz | tar xzvf - +$ curl -L https://github.com/Metaswitch/floki/releases/download/2.0.1/floki-2.0.1-linux.tar.gz | tar xzvf - ``` in a shell. You should now be able to run `floki` from your working directory: