Skip to content

Commit

Permalink
build: add python publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
alonfnt committed Feb 25, 2024
2 parents 90292af + 6f833a6 commit 69f882e
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 71 deletions.
71 changes: 0 additions & 71 deletions .github/workflows/codeql-analysis.yml

This file was deleted.

38 changes: 38 additions & 0 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# Workflow that publishes the last release to PyPI.

name: Upload Python Package

on:
release:
types: [published]

workflow_dispatch:

jobs:
pypi-publish:
name: Upload release to PyPI
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/bojax
permissions:
id-token: write
steps:

- uses: actions/checkout@v3

- 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 distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit 69f882e

Please sign in to comment.