Skip to content

Commit

Permalink
Adding action for publishing releases to crates.io
Browse files Browse the repository at this point in the history
  • Loading branch information
thepacketgeek committed Aug 22, 2022
1 parent b1860e9 commit a40f236
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
22 changes: 22 additions & 0 deletions .github/workflows/publish-crate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: publish-crates

on:
release:
types: [published]
workflow_dispatch:

env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CRATES_IO_TOKEN }}

jobs:
crate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: "Publish switchtec_user_sys"
uses: nick-fields/retry@v2
with:
timeout_minutes: 10
max_attempts: 3
polling_interval_seconds: 30
command: cargo publish
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "switchtec-user-sys"
version = "0.1.10"
version = "0.1.11"
authors = ["Mat Wood <[email protected]>"]
description = "Rust wrapper for the switchtec-user C library"
categories = ["external-ffi-bindings", "hardware-support"]
Expand Down

0 comments on commit a40f236

Please sign in to comment.