Skip to content

Commit

Permalink
[CI] Fix: issue in environment for trusted publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
grydz committed Apr 2, 2024
1 parent 91382e0 commit 125eca2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
python-version: ${{ matrix.python-version }}

release:
name: Release for Python ${{ matrix.python-version }} (${{ matrix.target }}-$${{ matrix.os }})
name: Release for Python ${{ matrix.python-version }} (${{ matrix.target }}-${{ matrix.os }})
runs-on: ubuntu-latest
if: "startsWith(github.ref, 'refs/tags/')"
needs: python
Expand All @@ -35,12 +35,16 @@ jobs:
os: [ubuntu-20.04, macos-13]
target: [x86_64]
python-version: ['3.8', '3.9', '3.10', '3.11']
environment:
name: release
url: https://pypi.org/p/intel-sgx-ra

steps:
- name: Download artifacts
uses: actions/download-artifact@v4
with:
name: ${{ matrix.os }}-${{ matrix.python-version }}-${{ matrix.target }}-wheels
path: dist

- name: Publish packages to PyPi
if: ${{ startsWith(github.ref, 'refs/tags') && endsWith(github.ref, steps.metadata.outputs.PACKAGE_VERSION) }}
Expand Down
4 changes: 0 additions & 4 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,11 @@ env:

permissions:
contents: read
id-token: write

jobs:
python:
name: Python ${{ inputs.python-version }} (${{ inputs.target }})
runs-on: ${{ inputs.os }}
environment:
name: release
url: https://pypi.org/p/intel-sgx-ra

steps:
- name: Checkout
Expand Down

0 comments on commit 125eca2

Please sign in to comment.