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:50 UTC

[airflow-site] branch sync-version created (now 911e1db)

This is an automated email from the ASF dual-hosted git repository.

kamilbregula pushed a change to branch sync-version
in repository https://gitbox.apache.org/repos/asf/airflow-site.git.


      at 911e1db  fixup! Sync version between release and package

This branch includes the following new commits:

     new 17685b8  Sync version between release and package
     new 911e1db  fixup! Sync version between release and package

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[airflow-site] 02/02: fixup! Sync version between release and package

Posted by ka...@apache.org.
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 911e1dbf82a62dd009c8a5455e310c980220f9c5
Author: Kamil Breguła <ka...@polidea.com>
AuthorDate: Fri Dec 11 02:03:31 2020 +0100

    fixup! Sync version between release and package
---
 .github/workflows/build.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index b0101be..f194539 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -104,7 +104,7 @@ jobs:
           GITHUB_COMMIT: ${{ github.sha }}
           GITHUB_REF: ${{ github.ref }}
         if: >
-          github.ref == 'refs/heads/master' && github.repository == 'apache/airflow-site' &&
+          github.ref == 'refs/heads/master' &&
           github.event_name == 'push'
         run: |
           gh auth status


[airflow-site] 01/02: Sync version between release and package

Posted by ka...@apache.org.
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',