Skip to content

Commit 93bfc02

Browse files
Attest build artifacts
1 parent 552fb93 commit 93bfc02

File tree

2 files changed

+18
-14
lines changed

2 files changed

+18
-14
lines changed

.builds/ubuntu.yml

Lines changed: 0 additions & 12 deletions
This file was deleted.

.github/workflows/build.yml

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@ on:
1313
required: false
1414
type: string
1515

16+
permissions:
17+
id-token: write
18+
contents: read
19+
attestations: write
20+
actions: write
21+
1622
jobs:
1723
build:
1824
runs-on: ubuntu-latest
@@ -36,8 +42,18 @@ jobs:
3642
run: chmod +x ./gradlew
3743
- name: Build
3844
run: ./gradlew build
39-
- name: Upload artifacts
45+
- name: Read gradle.properties
46+
uses: madhead/[email protected]
47+
id: properties
48+
with:
49+
file: gradle.properties
50+
all: true
51+
- name: Generate artifact attestation
52+
uses: actions/[email protected]
53+
with:
54+
subject-path: build/libs/${{ steps.properties.outputs.archives_base_name }}-${{ steps.properties.outputs.mod_version }}.jar
55+
- name: Upload artifact
4056
uses: actions/[email protected]
4157
with:
4258
name: Artifacts
43-
path: build/libs
59+
path: build/libs/${{ steps.properties.outputs.archives_base_name }}-${{ steps.properties.outputs.mod_version }}.jar

0 commit comments

Comments
 (0)