Skip to content

Commit

Permalink
restructure
Browse files Browse the repository at this point in the history
  • Loading branch information
Tigul committed Sep 4, 2024
1 parent 54af050 commit b740b41
Showing 1 changed file with 21 additions and 15 deletions.
36 changes: 21 additions & 15 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ jobs:
# cross-platform coverage.
# See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix
runs-on: ubuntu-latest
permissions:
# IMPORTANT: this permission is mandatory for trusted publishing
id-token: write
environment: release

steps:
- uses: actions/checkout@v2
Expand All @@ -40,18 +44,20 @@ jobs:
# # See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail
# run: ctest -C ${{env.BUILD_TYPE}}

pypi-publish:
name: upload release to PyPI
runs-on: ubuntu-latest
needs: build
# Specifying a GitHub environment is optional, but strongly encouraged
environment: release
permissions:
# IMPORTANT: this permission is mandatory for trusted publishing
id-token: write
working-directory: ${{github.workspace}}
steps:
# retrieve your distributions here

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

# pypi-publish:
# name: upload release to PyPI
# runs-on: ubuntu-latest
# needs: build
# # Specifying a GitHub environment is optional, but strongly encouraged
# environment: release
# permissions:
# # IMPORTANT: this permission is mandatory for trusted publishing
# id-token: write
# steps:
# # retrieve your distributions here
#
# - name: Publish package distributions to PyPI
# uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit b740b41

Please sign in to comment.