Skip to content

Commit

Permalink
testing GH Actions for test pypi upload
Browse files Browse the repository at this point in the history
  • Loading branch information
mayankchetan committed Aug 19, 2024
1 parent a0bed7c commit 09775e1
Showing 1 changed file with 36 additions and 16 deletions.
52 changes: 36 additions & 16 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,27 +12,47 @@ on:
- released

jobs:
publish-to-pypi:
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
# publish-to-pypi:
# runs-on: ubuntu-latest
# permissions:
# id-token: write
# contents: read

steps:
- name: Checkout Repository
uses: actions/checkout@v4
# steps:
# - name: Checkout Repository
# uses: actions/checkout@v4

# - name: Install Poetry
# uses: snok/install-poetry@v1.3.4

- name: Install Poetry
uses: snok/install-poetry@v1.3.4
# - name: Build a binary wheel and a source tarball
# run: poetry build
# working-directory: openfast_python

- name: Build a binary wheel and a source tarball
run: poetry build
working-directory: openfast_python
# - name: Publish package distributions to PyPI
# uses: pypa/gh-action-pypi-publish@v1.8.14
# with:
# packages-dir: openfast_python/dist

- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@v1.8.14
# name: Build and publish python package

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

# jobs:
publish-to-test-pypi:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build and publish to pypi
uses: JRubics/poetry-publish@v2.0
with:
packages-dir: openfast_python/dist
pypi_token: ${{ secrets.PYPI_TOKEN }}
package_directory: "openfast_io"
repository_name: "openfast_io"
repository_url: "https://test.pypi.org/legacy/"



docker-build-and-push:
Expand Down

0 comments on commit 09775e1

Please sign in to comment.