manga-dlp/.woodpecker/publish_release.yml

84 lines
1.7 KiB
YAML
Raw Normal View History

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
image: woodpeckerci/plugin-git
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
pull: true
2022-05-13 00:46:56 +02:00
commands:
2022-07-19 01:06:42 +02:00
- python3 -m hatch build
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
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
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
image: woodpeckerci/plugin-github-release
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
target: HATCH_PYPI_USER
- source: pypi_token
target: HATCH_PYPI_AUTH
commands:
2022-07-19 01:06:42 +02:00
- python3 -m hatch publish