-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (37 loc) · 1.18 KB
/
release-please.yml
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
name: Release Please
on:
push:
branches:
- main
permissions:
id-token: write
attestations: write
contents: write
pull-requests: write
jobs:
release-please:
runs-on: ubuntu-latest
if: false
steps:
- uses: googleapis/release-please-action@7987652d64b4581673a76e33ad5e98e3dd56832f # v4
id: release
- name: Checkout
if: ${{ steps.release.outputs.release_created }}
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
- name: Build
if: ${{ steps.release.outputs.release_created }}
run: echo foo > bar.txt
- name: Generate artifact attestation
if: ${{ steps.release.outputs.release_created }}
id: attestation
uses: actions/attest-build-provenance@v1
with:
subject-path: bar.txt
- name: Foo
if: ${{ steps.release.outputs.release_created }}
run: echo '${{ toJson(steps.attestation) }}'
- name: Upload Release Artifact
if: ${{ steps.release.outputs.release_created }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: gh release upload ${{ steps.release.outputs.tag_name }} ./bar.txt