FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
climada_python/.github/workflows/make-release.yml at develop · CLIMADA-project/climada_python · GitHub
CLIMADA-project
/
climada_python
Public
Notifications
You must be signed in to change notification settings
Fork
166
Star
477
Code
Issues
128
Pull requests
18
Discussions
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Discussions
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
climada_python
/
.github
/
workflows
/
make-release.yml
Copy path
View runs
More file actions
More file actions
Latest commit
History
History
History
37 lines (33 loc) · 1.05 KB
Breadcrumbs
climada_python
/
.github
/
workflows
/
make-release.yml
Copy path
File metadata and controls
37 lines (33 loc) · 1.05 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
#
This workflow will create a new release from main
#
the new version number is the old one increased by 1 in the given level [major, minor, patch]
#
first, some files are modified (_version.py, pyproject.toml and CHANGELOG.md
#
then, a new release is created on GitHub, tagged with v[new version number]
name
:
Create a new release
on
:
workflow_dispatch
:
inputs
:
level
:
description
:
'
Release Level
'
required
:
true
default
:
'
patch
'
type
:
choice
options
:
-
major
-
minor
-
patch
jobs
:
github
:
runs-on
:
ubuntu-latest
steps
:
-
name
:
Checkout
uses
:
actions/checkout@master
with
:
token
:
${{ secrets.PERSONAL_ACCESS_TOKEN }}
-
name
:
Prepare new release
run
:
python .github/scripts/prepare_release.py ${{ inputs.level }}
env
:
GITHUB_TOKEN
:
${{ secrets.PERSONAL_ACCESS_TOKEN }}
-
name
:
Publish
run
:
python .github/scripts/make_release.py
env
:
GITHUB_TOKEN
:
${{ secrets.PERSONAL_ACCESS_TOKEN }}
Back
|
FazBrowse Home
|
New Git URL