Skip to content

Commit

Permalink
Update deploy action for OIDC
Browse files Browse the repository at this point in the history
  • Loading branch information
IAlibay authored Oct 27, 2023
1 parent 29a2cef commit d4208d8
Showing 1 changed file with 38 additions and 13 deletions.
51 changes: 38 additions & 13 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,37 +20,62 @@ defaults:


jobs:
build_wheels:
environment: deploy
build_wheels_pyedr:
environment:
name: deploy
url: https://pypi.org/p/pyedr
if: "github.repository == 'MDAnalysis/panedr'"
name: Build pure Python wheel
name: Build pure Python wheel - pyedr
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: setup_miniconda
uses: conda-incubator/setup-miniconda@v2
- uses: actions/setup-python@v4
with:
python-version: 3.8
auto-update-conda: true
add-pip-as-python-dependency: true
architecture: x64
python-version: "3.11"

- name: install_deps
run: |
python -m pip install pipx
- name: install_and_build_pyedr
run: |
cd pyedr && python -m pip install build
python -m build --sdist --wheel --outdir ../dist/
- name: publish_pypi
if: github.event_name == 'release' && github.event.action == 'published'
uses: pypa/gh-action-pypi-publish@release/v1

build_wheels_panedr:
environment:
name: deploy
url: https://pypi.org/p/panedr
if: "github.repository == 'MDAnalysis/panedr'"
name: Build pure Python wheel - panedr
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- uses: actions/setup-python@v4
with:
python-version: "3.11"

- name: install_deps
run: |
python -m pip install pipx
- name: install_and_build_panedr
run: |
cd panedr && python -m pip install build
python -m build --sdist --wheel --outdir ../dist/
- name: publish_pypi
if: github.event_name == 'release' && github.event.action == 'published'
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.PYPI_API_TOKEN }}
uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit d4208d8

Please sign in to comment.