From aa89cc8876c1c89f90c158cf82581579b7774471 Mon Sep 17 00:00:00 2001 From: Andrei Avram <6795248+andreiavrammsd@users.noreply.github.com> Date: Fri, 23 May 2025 20:49:34 +0300 Subject: [PATCH] Remove release workflow --- .github/workflows/release.yml | 93 ----------------------------------- Cargo.lock | 2 +- Cargo.toml | 2 +- 3 files changed, 2 insertions(+), 95 deletions(-) delete mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml deleted file mode 100644 index 74430f1..0000000 --- a/.github/workflows/release.yml +++ /dev/null @@ -1,93 +0,0 @@ -name: Release - -on: - workflow_dispatch: - inputs: - version: - description: 'New version (e.g. 0.4.0)' - required: true - type: string - branches: - - master - push: - branches: - - master - -permissions: - contents: write - pull-requests: write - -jobs: - prepare-release: - if: github.event_name == 'workflow_dispatch' - runs-on: ubuntu-latest - - steps: - - name: Checkout main branch - uses: actions/checkout@v4 - with: - ref: master - - - name: Set version - run: echo "VERSION=${{ github.event.inputs.version }}" >> $GITHUB_ENV - - - uses: dtolnay/rust-toolchain@stable - - - name: Update crate version - run: | - sed -i "s/^version = \".*\"/version = \"${VERSION}\"/" Cargo.toml - cargo check - - - name: Create Pull Request - uses: peter-evans/create-pull-request@v7 - with: - token: ${{ secrets.GITHUB_TOKEN }} - commit-message: "Release v${{ env.VERSION }}" - committer: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> - author: ${{ github.actor }} <${{ github.actor_id }}+${{ github.actor }}@users.noreply.github.com> - branch: release/v${{ env.VERSION }} - sign-commits: true - title: "Release v${{ env.VERSION }}" - body: "This PR bumps the version to v${{ env.VERSION }}." - base: master - - tag-and-release: - if: github.event_name == 'push' && github.ref == 'refs/heads/master' - runs-on: ubuntu-latest - - steps: - - name: Checkout main - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - - name: Extract version from Cargo.toml - run: | - VERSION=$(grep '^version = ' Cargo.toml | sed -E 's/version = "(.*)"/\1/') - echo "VERSION=$VERSION" >> $GITHUB_ENV - - - name: Check if tag already exists - id: check_tag - run: | - if git rev-parse "v${VERSION}" >/dev/null 2>&1; then - echo "Tag v${VERSION} already exists. Skipping." - echo "skip=true" >> $GITHUB_OUTPUT - else - echo "skip=false" >> $GITHUB_OUTPUT - fi - - - name: Create tag - if: steps.check_tag.outputs.skip == 'false' - run: | - git config user.name "${{ github.actor }}" - git config user.email "${{ github.actor_id }}+${{ github.actor }}@users.noreply.github.com" - git tag v${VERSION} - git push origin v${VERSION} - - - name: Create GitHub release - if: steps.check_tag.outputs.skip == 'false' - uses: softprops/action-gh-release@v2 - with: - tag_name: v${{ env.VERSION }} - name: v${{ env.VERSION }} - body: TBD diff --git a/Cargo.lock b/Cargo.lock index 545c72e..ab4b393 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -433,7 +433,7 @@ dependencies = [ [[package]] name = "static_vector" -version = "0.3.1" +version = "0.3.0" dependencies = [ "criterion", "trybuild", diff --git a/Cargo.toml b/Cargo.toml index 1cbb343..39b6c5a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "static_vector" -version = "0.3.1" +version = "0.3.0" authors = ["Andrei Avram"] rust-version = "1.85.1" edition = "2024"