Skip to content

Commit

Permalink
Publish workflows updated
Browse files Browse the repository at this point in the history
  • Loading branch information
jasursadikov committed Nov 6, 2024
1 parent 5efb533 commit d05c5f8
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 32 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish-aur.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Publish to AUR
name: Upload to Arch Linux User Repository (AUR)

on:
workflow_run:
Expand Down
53 changes: 22 additions & 31 deletions .github/workflows/publish-pypi.yaml
Original file line number Diff line number Diff line change
@@ -1,39 +1,30 @@
name: Publish to PyPI
name: Upload Python Package

on:
workflow_run:
workflows: ["Release Test"]
types:
- completed
release:
types: [published]

permissions:
contents: read

jobs:
deploy:
runs-on: ubuntu-latest

steps:
- name: Check out the repository
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.12'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build twine
- name: Build the package
run: |
rm -rf dist # Clean up any previous builds
python -m build
- name: Publish to PyPI
env:
TWINE_USERNAME: "__token__"
TWINE_PASSWORD: ${{ secrets.TWINE_PAT }}
run: |
twine upload dist/*
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build
- name: Build package
run: python -m build
- name: Publish package
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
with:
user: __token__
password: ${{ secrets.TWINE_PAT }}

0 comments on commit d05c5f8

Please sign in to comment.