diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index fd121749..4bd8d9fe 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -148,27 +148,28 @@ jobs: - name: Check Server Version run: | + CARGO_VERSION="${{ needs.get-next-version.outputs.new-release-version }}" + git checkout client-server git config --global user.name 'github-actions[bot]' git config --global user.email 'github-actions[bot]@users.noreply.github.com' git add Cargo.toml Cargo.lock - git commit -m "build: bump project version to $CARGO_VERSION [skip ci]" + git commit -m "build: bump project version to $CARGO_VERSION [skip ci]" || echo "nothing to commit" changes=$(git diff --name-only $(git describe --tags --abbrev=0)..HEAD -- src/) if [ -n "$changes" ]; then - CARGO_VERSION="${{ needs.get-next-version.outputs.new-release-version }}" SERVER_VERSION=$(cat .github/server-version.txt | tr -d '\n') if [ "$CARGO_VERSION" != "$SERVER_VERSION" ]; then echo "Server version needs to be updated" echo "$CARGO_VERSION" > .github/server-version.txt git add .github/server-version.txt - git commit -m "chore: update server version to $CARGO_VERSION [skip ci]" + git commit -m "chore: update server version to $CARGO_VERSION [skip ci]" || echo "nothing to commit" fi fi - git push + git push || echo "nothing to commit" release: runs-on: ubuntu-latest @@ -195,6 +196,7 @@ jobs: npm install -g @semantic-release/changelog npm install -g @semantic-release/git npm install -g @semantic-release/github + npm install -g @semantic-release/exec npm install -g @semantic-release-cargo/semantic-release-cargo npx semantic-release --repository-url https://github.com/vyfor/cord.nvim @@ -234,4 +236,4 @@ jobs: Cord offers a wide range of customization options allowing you to create custom and dynamic experiences that adapt to your needs. The possibilities are endless, and the only limit is your creativity! env: - LUAROCKS_API_KEY: ${{ secrets.LUAROCKS_API_KEY }} \ No newline at end of file + LUAROCKS_API_KEY: ${{ secrets.LUAROCKS_API_KEY }} diff --git a/.releaserc.js b/.releaserc.js index a1012f42..c42e5bb5 100644 --- a/.releaserc.js +++ b/.releaserc.js @@ -28,7 +28,6 @@ module.exports = { "message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}" } ], - ["@semantic-release-cargo/semantic-release-cargo"], [ "@semantic-release/exec", {