Ivan Schaller
5885b5294e
Some checks failed
ci/woodpecker/tag/tests Pipeline was successful
ci/woodpecker/tag/publish_pre_release Pipeline failed
ci/woodpecker/tag/publish_docker_arm64 Pipeline was successful
ci/woodpecker/tag/publish_docker_amd64 Pipeline was successful
ci/woodpecker/tag/publish_docker_manifest Pipeline was successful
83 lines
1.7 KiB
YAML
83 lines
1.7 KiB
YAML
###################
|
|
# publish release #
|
|
###################
|
|
# branch: master
|
|
# event: tag
|
|
|
|
platform: linux/amd64
|
|
|
|
depends_on:
|
|
- tests
|
|
|
|
clone:
|
|
git:
|
|
image: woodpeckerci/plugin-git:v1.6.0
|
|
when:
|
|
event: tag
|
|
branch: master
|
|
|
|
pipeline:
|
|
|
|
# build wheel and dist
|
|
build-pypi:
|
|
image: cr.44net.ch/ci-plugins/tests
|
|
pull: true
|
|
when:
|
|
event: tag
|
|
branch: master
|
|
commands:
|
|
- python3 -m hatch build --clean
|
|
|
|
# create release-notes
|
|
create-release-notes:
|
|
image: cr.44net.ch/baseimages/debian-base
|
|
pull: true
|
|
when:
|
|
event: tag
|
|
branch: master
|
|
commands:
|
|
- bash get_release_notes.sh ${CI_COMMIT_TAG}
|
|
|
|
# publish release on gitea (git.44net.ch/olofvndrhr/manga-dlp)
|
|
publish-release-gitea:
|
|
image: plugins/gitea-release
|
|
pull: true
|
|
when:
|
|
event: tag
|
|
branch: master
|
|
settings:
|
|
api_key:
|
|
from_secret: gitea-olofvndrhr-token
|
|
base_url: https://git.44net.ch
|
|
files: dist/*
|
|
title: ${CI_COMMIT_TAG}
|
|
note: RELEASENOTES.md
|
|
|
|
# publish release on github (github.com/olofvndrhr/manga-dlp)
|
|
publish-release-github:
|
|
image: plugins/github-release
|
|
pull: true
|
|
when:
|
|
event: tag
|
|
branch: master
|
|
settings:
|
|
api_key:
|
|
from_secret: github-olofvndrhr-token
|
|
files: dist/*
|
|
title: ${CI_COMMIT_TAG}
|
|
note: RELEASENOTES.md
|
|
|
|
# release pypi
|
|
release-pypi:
|
|
image: cr.44net.ch/ci-plugins/tests
|
|
pull: true
|
|
when:
|
|
event: tag
|
|
branch: master
|
|
secrets:
|
|
- source: pypi_username
|
|
target: HATCH_INDEX_USER
|
|
- source: pypi_token
|
|
target: HATCH_INDEX_AUTH
|
|
commands:
|
|
- python3 -m hatch publish --no-prompt --yes
|