You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by ka...@apache.org on 2020/12/11 01:11:51 UTC
[airflow-site] 01/02: Sync version between release and package
This is an automated email from the ASF dual-hosted git repository.
kamilbregula pushed a commit to branch sync-version
in repository https://gitbox.apache.org/repos/asf/airflow-site.git
commit 17685b8375da0e052fe4e18ac2304b355c31b0c9
Author: Kamil BreguĊa <ka...@polidea.com>
AuthorDate: Fri Dec 11 01:57:14 2020 +0100
Sync version between release and package
---
.github/workflows/build.yml | 8 +++++---
sphinx_airflow_theme/README.md | 4 +++-
sphinx_airflow_theme/setup.py | 2 +-
3 files changed, 9 insertions(+), 5 deletions(-)
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index c0f1898..b0101be 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -108,11 +108,13 @@ jobs:
github.event_name == 'push'
run: |
gh auth status
- gh release delete v0.0.3 -y || true
+ VERSION="$(cat setup.py | grep 'version=' | cut -d "'" -f 2)"
+ TITLE=$(date "+%Y-%m-%d %H:%M:%S")
NOTES="Commit: ${GITHUB_COMMIT}
Source: ${GITHUB_REF}"
- gh release create v0.0.3 \
- --title "Latest version" \
+ gh release delete "${VERSION}" -y || true
+ gh release create "${VERSION}" \
+ --title "${TITLE}" \
--notes "${NOTES}" \
./dist/*
diff --git a/sphinx_airflow_theme/README.md b/sphinx_airflow_theme/README.md
index 2e7e502..34c71c0 100644
--- a/sphinx_airflow_theme/README.md
+++ b/sphinx_airflow_theme/README.md
@@ -50,7 +50,8 @@ In order to start working with the theme, please follow the instructions below.
To install the latest development version of a theme, run:
```
-pip install 'https://github.com/apache/airflow-site/releases/download/v0.0.3/sphinx_airflow_theme-0.0.3-py3-none-any.whl'
+THEME_VERSION="$(curl -s https://api.github.com/repos/apache/airflow-site/releases/latest | grep '"tag_name":' | cut -d '"' -f 4)"
+pip install 'https://github.com/apache/airflow-site/releases/download/${THEME_VERSION}/sphinx_airflow_theme-${THEME_VERSION}-py3-none-any.whl'
```
Python packages for your PRs is available as downloadable artifact in GitHub Actions after
the CI builds your PR.
@@ -69,6 +70,7 @@ html_theme_options = {
'navbar_links': [
{'href': '/docs/', 'text': 'Documentation'}
]
+}
```
(This is the default)
diff --git a/sphinx_airflow_theme/setup.py b/sphinx_airflow_theme/setup.py
index 2a15968..c4f787a 100644
--- a/sphinx_airflow_theme/setup.py
+++ b/sphinx_airflow_theme/setup.py
@@ -38,7 +38,7 @@ with open('README.md', encoding='utf-8') as file:
setup(
name='sphinx_airflow_theme',
- version='0.0.2',
+ version='0.0.4',
url='https://github.com/apache/airflow-site/tree/aip-11',
license='Apache License 2.0',
author='Apache Software Foundation',