-
Notifications
You must be signed in to change notification settings - Fork 1
49 lines (42 loc) · 1.21 KB
/
Copy pathpublish-attested.yml
File metadata and controls
49 lines (42 loc) · 1.21 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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: Publish Attested
on:
workflow_dispatch:
inputs:
version:
description: Release version without the leading "v"
required: false
type: string
permissions:
contents: write
id-token: write
attestations: write
artifact-metadata: write
jobs:
publish:
uses: ./.github/workflows/publish-artifacts.yml
with:
package_version: ${{ inputs.version }}
release:
name: Upload artifacts to draft release
runs-on: ubuntu-latest
needs: publish
steps:
- name: Checkout
uses: actions/checkout@v5
- name: Download published artifacts
uses: actions/download-artifact@v6
with:
pattern: ModularityKit-packages
path: dist
merge-multiple: true
- name: Create or update draft release
env:
GITHUB_TOKEN: ${{ github.token }}
REPOSITORY: ${{ github.repository }}
DIST_DIR: dist
FIND_DRAFT: "true"
ENSURE_DRAFT: "true"
FAIL_MESSAGE: "No draft release found. Release Drafter must create the draft before artifacts can be uploaded."
ASSET_PATTERNS: |
*
run: python3 -m scripts.releases.upload_release_assets