Repository navigation
75 lines (69 loc) · 2.33 KB
/
Copy pathrelease.yaml
File metadata and controls
75 lines (69 loc) · 2.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
name: Release CodeEntropy
on:
workflow_dispatch:
inputs:
version:
description: Version to release, in X.Y.Z form.
required: true
type: string
dry-run:
description: Check and build everything but do not open the version PR, tag, release or publish.
type: boolean
default: false
permissions:
contents: read
jobs:
prepare:
name: Prepare
uses: CCPBioSim/.github/.github/workflows/release-prepare.yaml@116d539cf0864af72d33dce047313ca6fc624ccd # 0.4.0
permissions:
contents: write
pull-requests: write
with:
version: ${{ inputs.version }}
dry-run: ${{ inputs.dry-run }}
version-files: >-
[
{"path": "CodeEntropy/__init__.py", "pattern": "^__version__ =.*", "replace": "__version__ = \"{version}\""},
{"path": "CITATION.cff", "pattern": "^version:.*", "replace": "version: {version}"},
{"path": "CITATION.cff", "pattern": "^date-released:.*", "replace": "date-released: '{date}'"}
]
secrets:
AUTO_PR_MERGE: ${{ secrets.AUTO_PR_MERGE }}
ZULIP_BOT_EMAIL: ${{ secrets.ZULIP_BOT_EMAIL }}
ZULIP_BOT_API_KEY: ${{ secrets.ZULIP_BOT_API_KEY }}
ZULIP_SITE: ${{ secrets.ZULIP_SITE }}
website:
name: Website
needs: prepare
uses: CCPBioSim/.github/.github/workflows/release-website.yaml@116d539cf0864af72d33dce047313ca6fc624ccd # 0.4.0
permissions:
contents: read
with:
version: ${{ inputs.version }}
tag: ${{ needs.prepare.outputs.tag }}
dry-run: ${{ inputs.dry-run }}
secrets:
BUILD_TOKEN: ${{ secrets.BUILD_TOKEN }}
pypi:
name: PyPI
needs: prepare
uses: CCPBioSim/.github/.github/workflows/release-pypi.yaml@116d539cf0864af72d33dce047313ca6fc624ccd # 0.4.0
permissions:
contents: read
with:
tag: ${{ needs.prepare.outputs.tag || inputs.version }}
dry-run: ${{ inputs.dry-run }}
secrets:
PYPI_API_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
conda:
name: Conda
needs: prepare
uses: CCPBioSim/.github/.github/workflows/release-conda.yaml@116d539cf0864af72d33dce047313ca6fc624ccd # 0.4.0
permissions:
contents: read
with:
tag: ${{ needs.prepare.outputs.tag || inputs.version }}
dry-run: ${{ inputs.dry-run }}
secrets:
ANACONDA_TOKEN: ${{ secrets.ANACONDA_TOKEN }}