This commit is contained in:
Sevki 2024-05-08 11:32:45 +00:00
parent 4da925944a
commit 66ddce2fcc
2 changed files with 17 additions and 4 deletions

16
.github/workflows/release.yml vendored Normal file
View file

@ -0,0 +1,16 @@
name: Release
on:
push:
branches: [ "main" ]
jobs:
create-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- uses: katyo/publish-crates@v2
with:
registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}

View file

@ -1,8 +1,5 @@
name: Rust name: Build and Test
on: on:
push:
branches: [ "main" ]
pull_request: pull_request:
branches: [ "main" ] branches: [ "main" ]