Skip to content

Commit

Permalink
use OIDC for prefix.dev (#62)
Browse files Browse the repository at this point in the history
  • Loading branch information
0xbe7a authored Jan 12, 2025
1 parent e0fa9b0 commit 7ee3cf3
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,13 +129,20 @@ jobs:
QUETZ_CHANNEL: my-channel
```

### Upload to prefix.dev
### Upload to prefix.dev via OIDC from GitHub Actions

This requires you to configure the workflow as a trusted publisher for your target channel (see [Trusted Publishing to Conda Channels](https://prefix.dev/blog/trusted_publishing_to_conda_channels)).

```yml
jobs:
build:
name: Build package
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
steps:
- uses: actions/checkout@v4
- name: Build conda package
Expand All @@ -145,8 +152,6 @@ jobs:
echo "Uploading ${pkg}"
rattler-build upload prefix -c my-channel "${pkg}"
done
env:
PREFIX_API_KEY: ${{ secrets.PREFIX_API_KEY }}
```

### Use private channel
Expand Down

0 comments on commit 7ee3cf3

Please sign in to comment.