Attempt to add publish workflow

This commit is contained in:
Kodi Craft 2024-06-24 21:12:14 +02:00
parent 71adf67727
commit 0d018d0869
Signed by: kodi
GPG Key ID: 69D9EED60B242822

@ -0,0 +1,19 @@
name: Publish library
on:
push:
branches:
- master
tags:
- v*
workflow_dispatch:
jobs:
publish:
runs-on: nix
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Publish to Gitea
run: nix develop -c cargo publish --dry-run --token ${{ secrets.GITEA_TOKEN }} --index sparse+https://git.colon-three.com/api/packages/kodi/cargo/
- name: Publish to crates.io
run: nix develop -c cargo publish --dry-run --token ${{ secrets.CRATESIO_TOKEN }}