2022-05-13 00:46:56 +02:00
|
|
|
###################
|
|
|
|
# publish release #
|
|
|
|
###################
|
|
|
|
# branch: master
|
|
|
|
# event: tag
|
|
|
|
|
2022-07-22 19:10:56 +02:00
|
|
|
platform: linux/amd64
|
|
|
|
|
2022-05-13 00:46:56 +02:00
|
|
|
depends_on:
|
|
|
|
- tests
|
|
|
|
|
2022-05-13 11:49:13 +02:00
|
|
|
clone:
|
|
|
|
git:
|
|
|
|
when:
|
2022-05-13 12:29:53 +02:00
|
|
|
#branch: master
|
2022-05-13 11:49:13 +02:00
|
|
|
event: tag
|
2022-12-29 14:38:27 +01:00
|
|
|
image: woodpeckerci/plugin-git:v1.6.0
|
2022-05-13 11:49:13 +02:00
|
|
|
|
2022-05-13 00:46:56 +02:00
|
|
|
pipeline:
|
|
|
|
|
2022-06-25 14:48:23 +02:00
|
|
|
# build wheel and dist
|
|
|
|
build-pypi:
|
2022-05-13 00:46:56 +02:00
|
|
|
when:
|
2022-05-13 12:38:24 +02:00
|
|
|
#branch: master
|
2022-05-13 00:46:56 +02:00
|
|
|
event: tag
|
2022-06-25 14:48:23 +02:00
|
|
|
image: cr.44net.ch/ci-plugins/tests
|
2022-05-13 11:38:36 +02:00
|
|
|
pull: true
|
2022-05-13 00:46:56 +02:00
|
|
|
commands:
|
2022-08-15 14:57:47 +02:00
|
|
|
- python3 -m hatch build --clean
|
2022-05-13 00:46:56 +02:00
|
|
|
|
|
|
|
# create release-notes
|
|
|
|
create-release-notes:
|
|
|
|
when:
|
2022-05-13 12:29:53 +02:00
|
|
|
#branch: master
|
2022-05-13 00:46:56 +02:00
|
|
|
event: tag
|
2022-06-21 17:16:52 +02:00
|
|
|
image: cr.44net.ch/baseimages/debian-base
|
2022-05-13 11:38:36 +02:00
|
|
|
pull: true
|
2022-05-13 00:46:56 +02:00
|
|
|
commands:
|
2022-06-21 22:22:57 +02:00
|
|
|
- bash get_release_notes.sh ${CI_COMMIT_TAG}
|
2022-05-13 00:46:56 +02:00
|
|
|
|
|
|
|
# publish release on gitea (git.44net.ch/olofvndrhr/manga-dlp)
|
|
|
|
publish-release-gitea:
|
|
|
|
when:
|
2022-05-13 12:29:53 +02:00
|
|
|
#branch: master
|
2022-05-13 00:46:56 +02:00
|
|
|
event: tag
|
|
|
|
image: plugins/gitea-release
|
2022-05-13 11:38:36 +02:00
|
|
|
pull: true
|
2022-05-13 00:46:56 +02:00
|
|
|
settings:
|
|
|
|
api_key:
|
2022-05-13 01:09:44 +02:00
|
|
|
from_secret: gitea-olofvndrhr-token
|
2022-05-13 00:46:56 +02:00
|
|
|
base_url: https://git.44net.ch
|
2022-06-25 14:48:23 +02:00
|
|
|
files: dist/*
|
2022-06-21 17:16:52 +02:00
|
|
|
title: ${CI_COMMIT_TAG}
|
2022-05-13 00:46:56 +02:00
|
|
|
note: RELEASENOTES.md
|
|
|
|
|
|
|
|
# publish release on github (github.com/olofvndrhr/manga-dlp)
|
|
|
|
publish-release-github:
|
|
|
|
when:
|
2022-05-13 12:38:24 +02:00
|
|
|
#branch: master
|
2022-05-13 00:46:56 +02:00
|
|
|
event: tag
|
2022-05-13 13:35:25 +02:00
|
|
|
image: woodpeckerci/plugin-github-release
|
2022-05-13 11:38:36 +02:00
|
|
|
pull: true
|
2022-05-13 00:46:56 +02:00
|
|
|
settings:
|
|
|
|
api_key:
|
2022-05-13 01:09:44 +02:00
|
|
|
from_secret: github-olofvndrhr-token
|
2022-06-25 14:48:23 +02:00
|
|
|
files: dist/*
|
2022-06-21 17:16:52 +02:00
|
|
|
title: ${CI_COMMIT_TAG}
|
2022-05-13 00:46:56 +02:00
|
|
|
note: RELEASENOTES.md
|
2022-06-25 14:48:23 +02:00
|
|
|
|
|
|
|
# release pypi
|
|
|
|
release-pypi:
|
|
|
|
when:
|
|
|
|
#branch: master
|
|
|
|
event: tag
|
|
|
|
image: cr.44net.ch/ci-plugins/tests
|
|
|
|
pull: true
|
|
|
|
secrets:
|
|
|
|
- source: pypi_username
|
2022-08-15 14:45:02 +02:00
|
|
|
target: HATCH_INDEX_USER
|
2022-06-25 14:48:23 +02:00
|
|
|
- source: pypi_token
|
2022-08-15 14:45:02 +02:00
|
|
|
target: HATCH_INDEX_AUTH
|
2022-06-25 14:48:23 +02:00
|
|
|
commands:
|
2022-08-15 14:57:47 +02:00
|
|
|
- python3 -m hatch publish --no-prompt --yes
|