Skip to content

Commit

Permalink
release action
Browse files Browse the repository at this point in the history
  • Loading branch information
eya46 committed Jan 19, 2024
1 parent af40ed8 commit ef1a12d
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Release

on:
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Push Tag
run: |
git config user.name eya46
git config user.email [email protected]
git add .
git commit -m ":bookmark: Release $(poetry version -s)"
git tag ${{ env.TAG_NAME }}
git push && git push --tags
- name: Install poetry
run: pipx install poetry
shell: bash

- uses: actions/setup-python@v5
with:
python-version: "3.8"
architecture: "x64"
cache: "poetry"

- run: poetry install -E all
shell: bash

- name: Build Package
run: |
poetry build
- name: Publish package to PyPI
uses: pypa/gh-action-pypi-publish@release/v1

- name: Publish package
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}

0 comments on commit ef1a12d

Please sign in to comment.