Skip to content

Merge branch 'main-dev' of https://github.com/ashvardanian/fork_union… #25

Merge branch 'main-dev' of https://github.com/ashvardanian/fork_union…

Merge branch 'main-dev' of https://github.com/ashvardanian/fork_union… #25

Workflow file for this run

name: Release
on:
push:
branches: ["main"]
env:
BUILD_TYPE: Release
GH_TOKEN: ${{ secrets.SEMANTIC_RELEASE_TOKEN }}
PYTHONUTF8: 1
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: write
pages: write
id-token: write
packages: write
jobs:
versioning:
name: Update Version
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
persist-credentials: false
- name: Run TinySemVer
uses: ashvardanian/[email protected]
with:
verbose: "true"
version-file: "VERSION"
update-version-in: |
CMakeLists.txt:^\s*VERSION (\d+\.\d+\.\d+)
Cargo.toml:^version = "(\d+\.\d+\.\d+)"
update-major-version-in: |
include/fork_union.hpp:^#define FORK_UNION_VERSION_MAJOR (\d+)
update-minor-version-in: |
include/fork_union.hpp:^#define FORK_UNION_VERSION_MINOR (\d+)
update-patch-version-in: |
include/fork_union.hpp:^#define FORK_UNION_VERSION_PATCH (\d+)
dry-run: "false"
push: "true"
create-release: "true"
github-token: ${{ secrets.SEMANTIC_RELEASE_TOKEN }}
rebase:
name: Rebase Dev. Branch
needs: versioning
runs-on: ubuntu-22.04
steps:
- name: Checkout the latest code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Perform rebase
run: |
git fetch origin main
git checkout main-dev
git rebase origin/main
- name: Push changes
uses: CasperWA/push-protected@v2
with:
token: ${{ secrets.SEMANTIC_RELEASE_TOKEN }}
branch: main-dev
unprotect_reviews: True
force: True
publish_rust:
name: Publish Rust
runs-on: ubuntu-24.04
needs: versioning
steps:
- uses: actions/checkout@v4
with:
ref: "main"
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly
override: true
- uses: katyo/publish-crates@v2
with:
registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}