Skip to content

Commit

Permalink
cd: add github action to release to pypi
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesx00 committed Jun 8, 2024
1 parent f13dfa5 commit c9343bb
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/release_new_version.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Release new version

on:
release:
types: [published]

concurrency:
group: ${{ github.workflow }}

jobs:
push_to_aws_ecr:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Install Python3.12.2
uses: actions/setup-python@v5
with:
python-version: '3.12.2'
- name: Install poetry
run: |
python -m pip install --user pipx
python -m pipx ensurepath
pipx install poetry
- name: Install dependencies
run: |
poetry install
- name: Config pypi token
run: poetry config pypi-token.pypi ${{ secrets.PYPI_TOKEN}}
- name: Build and publish
run: poetry publish --build

0 comments on commit c9343bb

Please sign in to comment.