Skip to content

Commit

Permalink
Update release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
rexruan committed Nov 24, 2023
1 parent 61fa84b commit 36a752b
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,26 @@
name: Pypi deployment

on:
workflow_dispatch: {}
push:
paths:
- swegram_main/version.py

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8"]
permissions:
id-token: write

steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
python-version: "3.8"

- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1

- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand Down

0 comments on commit 36a752b

Please sign in to comment.