Skip to content

Commit

Permalink
Update automation for new repo
Browse files Browse the repository at this point in the history
Fix copy/paste leftovers in setup.py
  • Loading branch information
NeonDaniel committed Jan 19, 2024
1 parent 4c2bfc9 commit 1cf29d3
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 7 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/license_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ on:
- master
jobs:
license_tests:
uses: neongeckocom/.github/.github/workflows/license_tests.yml@master
uses: neongeckocom/.github/.github/workflows/license_tests.yml@master
# TODO
1 change: 0 additions & 1 deletion .github/workflows/propose_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ jobs:
release_type: ${{ inputs.release_type }}
update_changelog: True
version_file: "neon_hana/version.py"
on_version_change: "scripts/sync_chart_app_version.py"
pull_changes:
uses: neongeckocom/.github/.github/workflows/pull_master.yml@master
needs: update_version
Expand Down
16 changes: 14 additions & 2 deletions .github/workflows/publish_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,18 @@ on:
- master

jobs:
build_and_publish_pypi_and_release:
uses: neongeckocom/.github/.github/workflows/publish_stable_release.yml@master
tag_release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Get Version
run: |
VERSION=$(python setup.py --version)
echo "VERSION=${VERSION}" >> $GITHUB_ENV
- uses: ncipollo/release-action@v1
with:
token: ${{secrets.GITHUB_TOKEN}}
tag: ${{env.VERSION}}
build_and_publish_docker:
uses: neongeckocom/.github/.github/workflows/publish_docker.yml@master
secrets: inherit
8 changes: 6 additions & 2 deletions .github/workflows/publish_test_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ jobs:
uses: neongeckocom/.github/.github/workflows/publish_alpha_release.yml@master
secrets: inherit
with:
version_file: "neon_diana_utils/version.py"
version_file: "version.py"
publish_prerelease: true
on_version_change: "scripts/sync_chart_app_version.py"
publish_pypi: false
build_and_publish_docker:
needs: publish_alpha_release
uses: neongeckocom/.github/.github/workflows/publish_docker.yml@master
secrets: inherit
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def get_requirements(requirements_filename: str):
with open(path.join(BASE_PATH, "README.md"), "r") as f:
long_description = f.read()

with open(path.join(BASE_PATH, "hana",
with open(path.join(BASE_PATH, "neon_hana",
"version.py"), "r", encoding="utf-8") as v:
for line in v.readlines():
if line.startswith("__version__"):
Expand Down

0 comments on commit 1cf29d3

Please sign in to comment.