Skip to content

Commit

Permalink
ci: update workflow version
Browse files Browse the repository at this point in the history
  • Loading branch information
SherkeyXD committed Dec 1, 2024
1 parent 0e69a84 commit b7badb2
Showing 1 changed file with 29 additions and 27 deletions.
56 changes: 29 additions & 27 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,30 @@
name: Publish to Pypi

on:
push:
tags:
- "v*.*.*"
workflow_dispatch:

jobs:
build-and-publish:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v3

- name: Setup Python 3.10
uses: actions/setup-python@v4
with:
python-version: "3.10"

- name: Setup Poetry
uses: Gr1N/setup-poetry@v8

- name: Build and Publish
run: |
poetry config pypi-token.pypi ${{ secrets.PYPI_TOKEN }}
poetry publish --build
name: Publish to Pypi

on:
push:
tags:
- "v*.*.*"
workflow_dispatch:

jobs:
build-and-publish:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
with:
show-progress: false

- name: Setup Python 3.10
uses: actions/setup-python@v5
with:
python-version: "3.10"

- name: Setup Poetry
uses: Gr1N/setup-poetry@v9

- name: Build and Publish
run: |
poetry config pypi-token.pypi ${{ secrets.PYPI_TOKEN }}
poetry publish --build

0 comments on commit b7badb2

Please sign in to comment.