Skip to content

Commit 17685b8

Browse files
author
Kamil Breguła
committed
Sync version between release and package
1 parent d3041f9 commit 17685b8

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

.github/workflows/build.yml

+5-3
Original file line numberDiff line numberDiff line change
@@ -108,11 +108,13 @@ jobs:
108108
github.event_name == 'push'
109109
run: |
110110
gh auth status
111-
gh release delete v0.0.3 -y || true
111+
VERSION="$(cat setup.py | grep 'version=' | cut -d "'" -f 2)"
112+
TITLE=$(date "+%Y-%m-%d %H:%M:%S")
112113
NOTES="Commit: ${GITHUB_COMMIT}
113114
Source: ${GITHUB_REF}"
114115
115-
gh release create v0.0.3 \
116-
--title "Latest version" \
116+
gh release delete "${VERSION}" -y || true
117+
gh release create "${VERSION}" \
118+
--title "${TITLE}" \
117119
--notes "${NOTES}" \
118120
./dist/*

sphinx_airflow_theme/README.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@ In order to start working with the theme, please follow the instructions below.
5050
5151
To install the latest development version of a theme, run:
5252
```
53-
pip install 'https://github.com/apache/airflow-site/releases/download/v0.0.3/sphinx_airflow_theme-0.0.3-py3-none-any.whl'
53+
THEME_VERSION="$(curl -s https://api.github.com/repos/apache/airflow-site/releases/latest | grep '"tag_name":' | cut -d '"' -f 4)"
54+
pip install 'https://github.com/apache/airflow-site/releases/download/${THEME_VERSION}/sphinx_airflow_theme-${THEME_VERSION}-py3-none-any.whl'
5455
```
5556
Python packages for your PRs is available as downloadable artifact in GitHub Actions after
5657
the CI builds your PR.
@@ -69,6 +70,7 @@ html_theme_options = {
6970
'navbar_links': [
7071
{'href': '/docs/', 'text': 'Documentation'}
7172
]
73+
}
7274
```
7375

7476
(This is the default)

sphinx_airflow_theme/setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838

3939
setup(
4040
name='sphinx_airflow_theme',
41-
version='0.0.2',
41+
version='0.0.4',
4242
url='https://github.com/apache/airflow-site/tree/aip-11',
4343
license='Apache License 2.0',
4444
author='Apache Software Foundation',

0 commit comments

Comments
 (0)