Skip to content

Commit

Permalink
ghaction update
Browse files Browse the repository at this point in the history
Signed-off-by: Navid Yaghoobi <navidys@fedoraproject.org>
  • Loading branch information
navidys committed Jun 30, 2024
1 parent 31b7f2e commit dc07aea
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---
name: Publish

on:
push:
tags:
- 'v*'
branches:
- main

workflow_dispatch:

jobs:
publish_crate:
name: Publish crate
runs-on: 'ubuntu-latest'
steps:
- name: Check out the repo
uses: actions/checkout@v2

- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true

- run: cargo publish --token ${CRATES_TOKEN}
env:
CRATES_TOKEN: ${{ secrets.CRATES_TOKEN }}

0 comments on commit dc07aea

Please sign in to comment.