Merge pull request #1848 from moj-analytical-services/rel_17_jan_24 #94
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release Package on PyPi | |
on: | |
push: | |
tags: | |
- "v*.*.*" | |
workflow_dispatch: | |
jobs: | |
poetry-publish: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
ref: master | |
- name: Install poetry | |
run: pipx install poetry | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: "3.8" | |
- name: Publish to Pypi | |
env: | |
TOKEN: ${{ secrets.PYPI_API_TOKEN }} | |
run: poetry publish --build -u __token__ -p $TOKEN | |
# Create duckdbless requirements | |
- name: Run duckdbless setup | |
run: | | |
chmod +x ./scripts/duckdb-less_packages.sh | |
./scripts/duckdb-less_packages.sh | |
shell: bash | |
- uses: stefanzweifel/git-auto-commit-action@v4 | |
with: | |
commit_message: Update duckdbless requirements | |
# feed exact file for ease | |
file_pattern: 'duckdbless_requirements.txt' | |
repository: ./scripts | |
- name: Update binder_branch branch so binder points to current master | |
run: | | |
git branch -f binder_branch master | |
git push origin binder_branch |