2022-01-13 09:47:59 +11:00
|
|
|
name: Publish sub crate
|
2022-01-13 09:06:19 +11:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
tags:
|
2022-01-13 09:52:27 +11:00
|
|
|
- "*/v*"
|
2022-01-13 09:06:19 +11:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-20.04
|
|
|
|
steps:
|
|
|
|
- name: Install build tools
|
|
|
|
run: sudo apt-get update && sudo apt-get install build-essential binutils-arm-none-eabi -y
|
|
|
|
- name: Check out repository
|
2022-03-02 07:05:55 +11:00
|
|
|
uses: actions/checkout@v3
|
2022-01-13 09:06:19 +11:00
|
|
|
- name: Login to crates.io
|
|
|
|
run: cargo login ${{ secrets.CRATE_API }}
|
2022-01-13 09:47:59 +11:00
|
|
|
- name: Publish crate
|
|
|
|
run: bash .github/scripts/publish-crate.sh
|