Initial project 🎉
Some checks failed
create-release / build (push) Successful in 11s
CI / release (release) Failing after 7m3s

This commit is contained in:
2025-05-16 16:57:20 +12:00
commit 374d1019fa
17 changed files with 1409 additions and 0 deletions

27
.github/workflows/create-release.yml vendored Normal file
View File

@@ -0,0 +1,27 @@
name: create-release
on:
push:
branches:
- "**"
tags:
- "!**"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Create release if required
uses: go-semantic-release/action@v1
with:
custom-arguments: >
--provider=gitea
--allow-initial-development-versions
--prerelease
hooks: exec
env:
GITEA_TOKEN: ${{ secrets.G_TOKEN }}
GITEA_HOST: ${{ secrets.G_SERVER_URL}}

22
.github/workflows/publish-release.yml vendored Normal file
View File

@@ -0,0 +1,22 @@
name: CI
on:
release:
types: [published]
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Update version in pyproject.toml
run: |
sed -i -e 's|version = ".*|version = "${{ env.GITHUB_REF_NAME }}"|' pyproject.toml
- name: Build and publish to private Python package repository
uses: JRubics/poetry-publish@v2.1
with:
repository_name: "hub"
repository_url: "https://hub.cybercinch.nz/api/packages/cybercinch/pypi"
repository_username: ${{ secrets.G_PYPI_USERNAME }}
repository_password: ${{ secrets.G_PYPI_PASSWORD }}