eagle/.gitea/workflows/publish.yaml

23 lines
645 B
YAML
Raw Normal View History

2024-06-24 21:12:14 +02:00
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
2024-06-24 21:54:28 +02:00
run: nix develop -c cargo publish --token "Bearer ${{ secrets.GITHUB_TOKEN }}" --index sparse+https://git.colon-three.com/api/packages/kodi/cargo/
2024-06-24 21:12:14 +02:00
- name: Publish to crates.io
2024-06-24 21:28:16 +02:00
run: nix develop -c cargo publish --token ${{ secrets.CRATESIO_TOKEN }}
- name: Publish to Gitea Releases
uses: akkuman/gitea-release-action@v1
with:
draft: true