|
38 | 38 |
|
39 | 39 | distcheck: |
40 | 40 | runs-on: ubuntu-latest |
41 | | - permissions: |
42 | | - # Permissions from https://github.com/googleapis/release-please-action?tab=readme-ov-file#basic-configuration |
43 | | - # TODO: This is only needed for release, maybe split the release steps to a different job? |
44 | | - contents: write |
45 | | - pull-requests: write |
46 | | - # Needed for adding labels for PRs, we shouldn't actually need this, see https://github.com/orgs/community/discussions/156181 |
47 | | - issues: write |
48 | | - # attestations and id-token for attest-build-provenance |
49 | | - attestations: write |
50 | | - id-token: write |
51 | 41 | strategy: |
52 | 42 | matrix: |
53 | 43 | include: |
|
64 | 54 | - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 |
65 | 55 | with: |
66 | 56 | persist-credentials: false |
67 | | - - uses: googleapis/release-please-action@16a9c90856f42705d54a6fda1823352bdc62cf38 # v4.4.0 |
68 | | - with: |
69 | | - config-file: .github/release-please-config.json |
70 | | - manifest-file: .github/release-please-manifest.json |
71 | | - id: release |
72 | | - if: github.event_name == 'push' && matrix.dist == 'alpine' |
73 | 57 | # A "container" workflow config would be cleaner here, but comes with |
74 | 58 | # some restrictions/oddities: changes root's $HOME to /github/home |
75 | 59 | # without changing the actual home dir that can cause some problems, |
|
91 | 75 | test/docker/entrypoint.sh |
92 | 76 | env: |
93 | 77 | NETWORK: ${{matrix.network}} |
94 | | - - uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0 |
95 | | - with: |
96 | | - path: | |
97 | | - bash-completion-*.tar.xz |
98 | | - sha256sums.txt |
99 | | - if: matrix.dist == 'alpine' |
100 | | - - name: Upload release assets |
101 | | - run: | |
102 | | - set -x |
103 | | - gh release upload ${RELEASE_PLEASE_TAG_NAME} \ |
104 | | - bash-completion-$(cat version.txt).tar.xz sha256sums.txt |
105 | | - env: |
106 | | - GH_TOKEN: ${{github.token}} |
107 | | - RELEASE_PLEASE_TAG_NAME: ${{steps.release.outputs.tag_name}} |
108 | | - if: steps.release.outputs.release_created |
109 | | - - uses: actions/attest@59d89421af93a897026c735860bf21b6eb4f7b26 # v4.1.0 |
110 | | - with: |
111 | | - subject-checksums: sha256sums.txt |
112 | | - if: steps.release.outputs.release_created |
0 commit comments