Skip to content

Commit 6524bf3

Browse files
author
ifeoluwaale
committed
Testing auto deployment for 0.1.4
1 parent deaa4c5 commit 6524bf3

5 files changed

Lines changed: 27 additions & 14 deletions

File tree

.github/workflows/create_git_release.yml

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
1-
on:
2-
workflow_run:
3-
workflows: ["Publish to PyPI"]
4-
types:
5-
- completed
6-
branches:
7-
- v0.1.3
81
name: Create Release
9-
2+
on:
3+
workflow_run:
4+
workflows: ["Publish to PyPI"]
5+
types:
6+
- completed
7+
branches:
8+
- v0.1.4
109
jobs:
1110
build:
1211
name: Create Release
@@ -20,8 +19,8 @@ jobs:
2019
env:
2120
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
2221
with:
23-
tag_name: v0.1.2
24-
release_name: 0.1.2
22+
tag_name: v0.1.4
23+
release_name: v0.1.4
2524
body: |
2625
Testing auto deployment to pypi and git.
2726
draft: false

.github/workflows/pypi_release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
types:
77
- completed
88
branches:
9-
- v0.1.3
9+
- v0.1.4
1010

1111
jobs:
1212
publish:
@@ -17,7 +17,7 @@ jobs:
1717
- name: Checkout source
1818
uses: actions/checkout@v3
1919
with:
20-
ref: v0.1.3
20+
ref: v0.1.4
2121
- name: Set up Python 3.11
2222
uses: actions/setup-python@v4
2323
with:

dplpy/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
__author__ = "Tyson Lee Swetnam"
44
__email__ = "tswetnam@arizona.edu"
5-
__version__ = "0.1.3"
5+
__version__ = "0.1.4"
66

77
__copyright__ = """
88
dplPy for tree ring width time series analyses

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ build-backend = "setuptools.build_meta"
99
name="dplpy"
1010
description="Dendrochronology Program Library for Python"
1111
readme="README.md"
12-
version="0.1.3"
12+
version="0.1.4"
1313
authors=[
1414
{name='Tyson Lee Swetnam', email='tswetnam@arizona.edu'},
1515
{name='Ifeoluwa Ale', email='ifeoluwaale@arizona.edu'},

release-instructions.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Instructions for publishing dplpy to PyPI
2+
3+
The following instructions are for key contributors only, and they describe the process of creating a new release for dplpy and publishing it to pypi and to a newly created github tag.
4+
5+
## 1. Updating version information in main.
6+
In the main branch of the dplpy github repository, update the following files in the indicated fields:
7+
8+
- In the `__init__.py` file in the `dplpy` folder, update `__version__` to the new version number.
9+
- In the `pyproject.toml` file, update the version number in the `[project]` section to match the new version number set in `__init__.py`.
10+
- In the `.github/workflows` folder, find `pypi_release.yml` and update the branch name for the workflow to run in to v + the new version number(i.e., v0.1.1 if the version number is 0.1.1).
11+
- Still in `pypi_release.yml`, ensure that the first step of the workflow uses code from the branch name you just set the workflow to run in (which should be named v + the version number).
12+
- In the `.github/workflows` folder, find `create_git_release.yml` and update the `branches` field of the workflow_run trigger to v + the new version number (e.g., v0.1.1 if the version number is 0.1.1).
13+
- Still in `create_git_release.yml`, update the name of the tag being created to v + the new version number, and change the release name to the new version number.
14+
- Still in `create_git_release.yml`, update the description of the git release using the `body` field located under the tag name and release name. You can also set the release as a draft or prerelease using the remaining fields.

0 commit comments

Comments
 (0)