Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 0 additions & 39 deletions .github/workflows/release.yml

This file was deleted.

43 changes: 39 additions & 4 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@ name: Rust

on:
push:
branches: [ "main" ]
tags:
- '*'
branches:
- '**'
pull_request:
branches: [ "main" ]
types: [closed]
branches:
- main

env:
CARGO_TERM_COLOR: always
Expand Down Expand Up @@ -59,3 +60,37 @@ jobs:
# cargo miri setup
# - name: Test with Miri
# run: cargo miri test

release:
needs: build
runs-on: ubuntu-latest
if: github.event.pull_request.merged == true

steps:
- uses: actions/checkout@v4

- name: Caching objects
id: cache-objects
uses: actions/cache@v4
with:
path: |
~/.cargo
${{ github.workspace }}/target
key: ${{ runner.os }}-release-objects

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '24'

- name: Install dependencies
run: npm ci

- name: Install cargo-release
run: cargo install cargo-release

- name: Semantic Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
run: npx semantic-release
Loading