Skip to content

Commit

Permalink
try azure federated identity with actions env (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
xbrianh committed Sep 3, 2024
1 parent 82732a0 commit 73f9dd3
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ on:
jobs:
test:
runs-on: ubuntu-latest
environment:
name: xdlake
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -53,6 +55,8 @@ jobs:
runs-on: ubuntu-latest
name: Build dist packages
needs: test
environment:
name: xdlake
steps:
- uses: actions/checkout@v4
- name: Set up Python
Expand All @@ -79,13 +83,13 @@ jobs:
if: startsWith(github.ref, 'refs/tags/') # only publish to PyPI on tag pushes
needs: build
environment:
name: pypi
name: xdlake
url: https://pypi.org/p/xdlake
permissions:
id-token: write # IMPORTANT: mandatory for trusted publishing
steps:
- name: Download all the dists
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: python-package-distributions
path: dist/
Expand Down

0 comments on commit 73f9dd3

Please sign in to comment.