-
Notifications
You must be signed in to change notification settings - Fork 2
28 lines (28 loc) · 1.04 KB
/
test-release.yaml
File metadata and controls
28 lines (28 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
---
name: "Test Release"
on:
workflow_dispatch:
# pull_request_target event is required for autolabeler to support all PRs including forks
pull_request_target:
types: [closed]
branches: [main]
jobs:
release:
permissions:
contents: write # Create releases and push major version tag
pull-requests: read # Read PR labels for release-drafter
packages: write # Push container images
id-token: write # Federate via Workload Identity for attestation
attestations: write # Create build provenance attestation
discussions: write # Create announcement discussions
uses: ./.github/workflows/release.yaml
with:
publish: true
release-config-name: release-drafter.yaml
image-name: ${{ github.repository }}
create-attestation: true
secrets:
github-token: ${{ secrets.GITHUB_TOKEN }}
image-registry-password: ${{ secrets.GITHUB_TOKEN }}
discussion-category-id: ${{ secrets.DISCUSSION_CATEGORY_ID }}
discussion-repository-id: ${{ secrets.DISCUSSION_REPOSITORY_ID }}