-
Notifications
You must be signed in to change notification settings - Fork 409
56 lines (53 loc) · 1.94 KB
/
release-please.yaml
File metadata and controls
56 lines (53 loc) · 1.94 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
50
51
52
53
54
55
56
name: release-please
on:
push:
branches:
- main
permissions: {}
jobs:
release-please:
runs-on: ubuntu-latest
permissions:
# Permissions from https://github.com/googleapis/release-please-action#basic-configuration
contents: write
pull-requests: write
# Needed for adding labels to PRs, we shouldn't actually need this, see https://github.com/orgs/community/discussions/156181
issues: write
# attestations and id-token for actions/attest
attestations: write
id-token: write
steps:
- uses: googleapis/release-please-action@5c625bfb5d1ff62eadeeb3772007f7f66fdcf071 # v4.4.1
with:
config-file: .github/release-please-config.json
manifest-file: .github/release-please-manifest.json
id: release
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
if: steps.release.outputs.release_created
with:
persist-credentials: false
# Use docker run instead of "container" workflow since that is what
# ci.yaml uses, and it's unclear how to run a script from inside the
# image.
- name: Run main build
if: steps.release.outputs.release_created
run: >-
docker run
--rm
--tty
--volume $PWD:/usr/src/bash-completion
--workdir /usr/src/bash-completion
ghcr.io/scop/bash-completion/test:alpine
./make-release.sh
- name: Upload release assets
if: steps.release.outputs.release_created
run: |
set -x
gh release upload ${RELEASE_PLEASE_TAG_NAME} bash-completion-*.tar.xz
env:
GH_TOKEN: ${{github.token}}
RELEASE_PLEASE_TAG_NAME: ${{steps.release.outputs.tag_name}}
- uses: actions/attest@59d89421af93a897026c735860bf21b6eb4f7b26 # v4.1.0
if: steps.release.outputs.release_created
with:
subject-path: bash-completion-*.tar.xz