Skip to content

Commit

Permalink
update gha
Browse files Browse the repository at this point in the history
  • Loading branch information
jtdub committed Jan 14, 2025
1 parent f78b590 commit a65581f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: hier_config build and test

on:
push:
branches: [ master ]
branches: [ 2.3-lts ]
pull_request:
branches: [ master ]
branches: [ 2.3-lts ]

jobs:
build:
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/deploy-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,20 @@ on:

jobs:
deploy:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.8'
python-version: '3.9'
- name: Install poetry
uses: snok/[email protected]
- name: Build and publish to Pypi
uses: snok/install-poetry@v1
with:
version: 1.5.1
- name: Build and publish to PyPI
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
TWINE_API_KEY: ${{ secrets.TWINE_API_KEY }}
run: |
poetry publish --build -u ${TWINE_USERNAME} -p ${TWINE_PASSWORD}
poetry config pypi-token.pypi $TWINE_API_KEY
poetry publish --build

0 comments on commit a65581f

Please sign in to comment.