Skip to content

Commit

Permalink
Automatically publish to PyPi
Browse files Browse the repository at this point in the history
  • Loading branch information
thebeanogamer committed May 21, 2023
1 parent a7b898a commit bdd85ae
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 105 deletions.
43 changes: 42 additions & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,45 @@ jobs:
tag_name: ${{inputs.version}}
generate_release_notes: true
files: |
hstsparser.exe
hstsparser.exe
pypi:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: '3.11'

- name: Cache Python modules
uses: actions/cache@v1
env:
cache-name: cache-node-modules
with:
path: ~/.pip
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/poetry.lock') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: Install and configure Poetry
uses: snok/install-poetry@v1
with:
version: 1.5.0
virtualenvs-create: false
installer-parallel: true

- name: Install Python Dependencies
run: poetry install --no-interaction --no-ansi --without=dev
env:
PIP_CACHE_DIR: ~/.pip

- name: Update Package Version
run: poetry version ${{inputs.version}}

- name: Publish to PyPi
run: poetry publish --build -u ${{secrets.pypi_username}} -p ${{secrets.pypi_password}}
104 changes: 0 additions & 104 deletions azure-pipelines/release-pipeline.yml

This file was deleted.

0 comments on commit bdd85ae

Please sign in to comment.