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:
2023-02-12 03:41:49 +01:00
image: woodpeckerci/plugin-git:v1.6.0
2022-05-13 11:49:13 +02:00
when:
event: tag
2023-02-12 04:05:07 +01:00
branch: master
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:
image: cr.44net.ch/ci-plugins/tests
pull: true
2023-02-12 03:41:49 +01:00
when:
event: tag
2023-02-12 05:03:32 +01:00
tag: "*!(-dev)"
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:
2022-06-21 17:16:52 +02:00
image: cr.44net.ch/baseimages/debian-base
pull: true
2023-02-12 03:41:49 +01:00
when:
event: tag
2023-02-12 05:03:32 +01:00
tag: "*!(-dev)"
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 github (github.com/olofvndrhr/manga-dlp)
publish-release-github:
image: woodpeckerci/plugin-github-release
pull: true
2023-02-12 03:41:49 +01:00
when:
event: tag
2023-02-12 05:03:32 +01:00
tag: "*!(-dev)"
2022-05-13 00:46:56 +02:00
settings:
api_key:
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
# publish release on gitea (git.44net.ch/olofvndrhr/manga-dlp)
publish-release-gitea:
image: woodpeckerci/plugin-gitea-release
2023-02-12 03:41:49 +01:00
pull: true
2022-05-13 00:46:56 +02:00
when:
event: tag
2023-02-12 05:03:32 +01:00
tag: "*!(-dev)"
2022-05-13 00:46:56 +02:00
settings:
api_key:
from_secret: gitea-olofvndrhr-token
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
2022-06-25 14:48:23 +02:00
# release pypi
release-pypi:
image: cr.44net.ch/ci-plugins/tests
pull: true
2023-02-12 03:41:49 +01:00
when:
event: tag
2023-02-12 05:03:32 +01:00
tag: "*!(-dev)"
2022-06-25 14:48:23 +02:00
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