Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
dimtsap authored Nov 9, 2023
1 parent a14e7af commit 47474e2
Showing 1 changed file with 43 additions and 41 deletions.
84 changes: 43 additions & 41 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,37 +40,37 @@ jobs:
- name: Display version
run: |
echo SemVer: $SEMVER
build-n-publish:
name: Build and publish Python 🐍 distributions 📦 to PyPI
runs-on: ubuntu-latest
needs: calculate-version
env:
SEMVER: ${{ needs.calculate-version.outputs.semVer }}
PYPI_USERNAME: ${{ secrets.PYPI_USERNAME }}
PYPI_API_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
steps:
- uses: actions/checkout@master
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: "3.10"
- name: Install pypa/build
run: >-
python -m
pip install
build
--user
- name: Install project requirements
run: >-
pip install -r requirements.txt
- name: Build binary wheel
run: |
python setup.py ${{env.SEMVER}} sdist bdist_wheel
- name: Publish package to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}
packages_dir: dist/
# build-n-publish:
# name: Build and publish Python 🐍 distributions 📦 to PyPI
# runs-on: ubuntu-latest
# needs: calculate-version
# env:
# SEMVER: ${{ needs.calculate-version.outputs.semVer }}
# PYPI_USERNAME: ${{ secrets.PYPI_USERNAME }}
# PYPI_API_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
# steps:
# - uses: actions/checkout@master
# - name: Set up Python 3.10
# uses: actions/setup-python@v3
# with:
# python-version: "3.10"
# - name: Install pypa/build
# run: >-
# python -m
# pip install
# build
# --user
# - name: Install project requirements
# run: >-
# pip install -r requirements.txt
# - name: Build binary wheel
# run: |
# python setup.py ${{env.SEMVER}} sdist bdist_wheel
# - name: Publish package to PyPI
# uses: pypa/gh-action-pypi-publish@release/v1
# with:
# password: ${{ secrets.PYPI_API_TOKEN }}
# packages_dir: dist/
# build_docs_job:
# runs-on: ubuntu-latest
# needs: build-n-publish
Expand Down Expand Up @@ -110,21 +110,23 @@ jobs:
# token: ${{ github.token }}
release:
runs-on: ubuntu-latest
needs: build-n-publish
# needs: build-n-publish
name: Create a Github Release
env:
GH_TOKEN: ${{ github.token }}
SEMVER: ${{ needs.calculate-version.outputs.semVer }}
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
# - name: Set the release tag environment variable
# run: echo RELEASE_TAG=v$SEMVER >> $GITHUB_ENV
- name: Create Github release
run: |
gh release create $SEMVER
# - name: Checkout
# uses: actions/checkout@v2
# with:
# fetch-depth: 0
- name: Set the release tag environment variable
run: echo RELEASE_TAG=v$SEMVER >> $GITHUB_ENV
- name: Display Tag
run: echo $RELEASE_TAG
# - name: Create Github release
# run: |
# gh release create $SEMVER



Expand Down

0 comments on commit 47474e2

Please sign in to comment.