-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bump cookiecutter template to 6540de (#60)
# Changes - bumped cookiecutter template to robert-koch-institut/mex-template@6540de --------- Signed-off-by: Nicolas Drebenstedt <[email protected]> Co-authored-by: Nicolas Drebenstedt <[email protected]>
- Loading branch information
1 parent
5ebf73c
commit 0ca1f14
Showing
4 changed files
with
67 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
name: Release | ||
|
||
run-name: release version ${{ inputs.version }} by @${{ github.actor }} | ||
|
||
on: | ||
workflow_dispatch: | ||
branches: ["main"] | ||
inputs: | ||
version: | ||
type: choice | ||
description: 'part of the project version to update' | ||
options: | ||
- major | ||
- minor | ||
- patch | ||
required: true | ||
|
||
env: | ||
PIP_NO_OPTION: on | ||
PIP_NO_CLEAN: on | ||
PIP_PREFER_BINARY: on | ||
|
||
permissions: | ||
contents: write | ||
|
||
concurrency: | ||
group: "release" | ||
cancel-in-progress: false | ||
|
||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 10 | ||
steps: | ||
- name: Checkout repo | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 1 | ||
|
||
- name: Cache requirements | ||
uses: actions/cache@v4 | ||
env: | ||
cache-name: cache-requirements | ||
with: | ||
path: ~/.cache/pip | ||
key: ${{ env.cache-name }}-${{ hashFiles('requirements.txt') }} | ||
restore-keys: | | ||
${{ env.cache-name }}- | ||
- name: Setup python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: 3.11 | ||
|
||
- name: Install requirements | ||
run: make setup | ||
|
||
- name: Release new version | ||
run: | | ||
git config --global user.name 'RKIMetadataExchange' | ||
git config --global user.email '[email protected]' | ||
pdm release ${{ inputs.version }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
cruft==2.15.0 | ||
pdm==2.15.2 | ||
mex-release @ git+https://github.com/robert-koch-institut/mex-release.git | ||
pdm==2.15.3 | ||
pre-commit==3.7.1 | ||
wheel==0.43.0 |