Skip to content

Commit

Permalink
Merge pull request #23 from OWASP/bump-pypi-publish-workflow
Browse files Browse the repository at this point in the history
bump gh-action-pypi-publish action version
  • Loading branch information
dmdhrumilmistry authored Nov 14, 2023
2 parents 39ebe64 + 1b9621e commit ba5501e
Showing 1 changed file with 27 additions and 28 deletions.
55 changes: 27 additions & 28 deletions .github/workflows/pypi-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,36 +9,35 @@
name: Upload OWASP OFFAT Python Package to PyPi

on:
release:
types: [published]
release:
types: [published]

permissions:
contents: read
contents: read

jobs:
deploy:
deploy:
runs-on: ubuntu-latest

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.x'
- name: change cwd to src directory
run: cd src
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build
- name: Build package
run: |
cd src
python -m build
- name: Publish package
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
packages_dir: src/dist
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: "3.x"
- name: change cwd to src directory
run: cd src
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build
- name: Build package
run: |
cd src
python -m build
- name: Publish package
uses: pypa/[email protected]
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
packages_dir: src/dist

0 comments on commit ba5501e

Please sign in to comment.