Skip to content

Feat: add policy composition primitives and examples #42

Feat: add policy composition primitives and examples

Feat: add policy composition primitives and examples #42

name: Release Drafter
on:
workflow_dispatch:
inputs:
version:
description: Release version without the leading "v"
required: false
type: string
push:
branches: [ main ]
permissions:
contents: write
pull-requests: read
id-token: write
attestations: write
artifact-metadata: write
jobs:
update-release-draft:
runs-on: ubuntu-latest
outputs:
tag_name: ${{ steps.release_drafter.outputs.tag_name }}
steps:
- name: Update release draft
id: release_drafter
uses: release-drafter/release-drafter@v7
with:
config-name: release-drafter.yml
version: ${{ github.event_name == 'workflow_dispatch' && inputs.version || '' }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
publish-attested:
needs: update-release-draft
uses: ./.github/workflows/publish-attested.yml
with:
version: ${{ needs.update-release-draft.outputs.tag_name }}
secrets:
NUGET_SIGN_CERTIFICATE_BASE64: ${{ secrets.NUGET_SIGN_CERTIFICATE_BASE64 }}
NUGET_SIGN_CERTIFICATE_PASSWORD: ${{ secrets.NUGET_SIGN_CERTIFICATE_PASSWORD }}
NUGET_SIGN_CERTIFICATE_SHA256_FINGERPRINT: ${{ secrets.NUGET_SIGN_CERTIFICATE_SHA256_FINGERPRINT }}
NUGET_SIGN_TIMESTAMP_URL: ${{ secrets.NUGET_SIGN_TIMESTAMP_URL }}
NUGET_SIGN_SKIP_VERIFICATION: ${{ secrets.NUGET_SIGN_SKIP_VERIFICATION }}