diff --git a/.github/workflows/sync.yml b/.github/workflows/sync.yml index 77660a8..f035282 100644 --- a/.github/workflows/sync.yml +++ b/.github/workflows/sync.yml @@ -2,7 +2,7 @@ name: Sync with private repo on: push: - branches: [ master ] + branches: [ master, main, nightly ] jobs: sync: @@ -14,4 +14,4 @@ jobs: - name: Add remote run: git remote add overhangio https://${{ secrets.GIT_USERNAME }}:${{ secrets.GIT_PASSWORD }}@git.overhang.io/core/tutor-discovery.git - name: Push - run: git push overhangio master + run: git push overhangio $GITHUB_REF diff --git a/tutordiscovery/__about__.py b/tutordiscovery/__about__.py index 1aa815c..9d7ed14 100644 --- a/tutordiscovery/__about__.py +++ b/tutordiscovery/__about__.py @@ -1,2 +1,8 @@ __version__ = "15.0.0" +# Handle version suffix for nightly, just like tutor core. +__version_suffix__ = "" + +if __version_suffix__: + __version__ += "-" + __version_suffix__ +