23 lines
645 B
YAML
23 lines
645 B
YAML
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 Cargo registry
|
|
run: nix develop -c cargo publish --token "Bearer ${{ secrets.GITHUB_TOKEN }}" --index sparse+https://git.colon-three.com/api/packages/kodi/cargo/
|
|
- name: Publish to crates.io
|
|
run: nix develop -c cargo publish --token ${{ secrets.CRATESIO_TOKEN }}
|
|
- name: Publish to Gitea Releases
|
|
uses: akkuman/gitea-release-action@v1
|
|
with:
|
|
draft: true |