-
Notifications
You must be signed in to change notification settings - Fork 2
62 lines (53 loc) · 1.81 KB
/
publish.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: Build Cross-build environment for pyodide-build
on:
push:
tags:
- '*'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
uses: ./.github/actions/build-xbuildenv
publish:
runs-on: ubuntu-latest
needs: [build]
if: >-
github.repository == 'pyodide/pyodide-build-environment-nightly' &&
(github.event_name == 'push' && startsWith(github.ref, 'refs/tags'))
permissions:
# Required to sign the attestations
id-token: write
attestations: write
# Required to upload to a GitHub release identifier
contents: write
steps:
- uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
with:
name: cross-build-env
path: dist
merge-multiple: true
- name: Generate attestations
uses: actions/attest-build-provenance@7668571508540a607bdfd90a87a560489fe372eb # v2.1.0
with:
subject-path: |
dist/xbuildenv.tar.bz2
- name: Calc release version
id: release_version
shell: bash
run: |
echo "release_version=${{ github.ref_name }}" >> $GITHUB_OUTPUT
cat $GITHUB_OUTPUT
- name: Verify them, to ensure that the wheels they were attested correctly
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
shell: bash
run: |
gh attestation verify dist/xbuildenv.tar.bz2 --repo ${{ github.repository }}
- name: Create GitHub release with these wheels
uses: softprops/action-gh-release@01570a1f39cb168c169c802c3bceb9e93fb10974 # v2.1.0
with:
files: |
dist/*.tar.bz2
fail_on_unmatched_files: true
name: ${{ steps.release_version.outputs.release_version }}