52
52
--notes "Automated release for latest ${{ github.ref_name }}." \
53
53
|| true
54
54
55
- release_pre_built :
55
+ build :
56
56
needs : create_draft_release
57
57
strategy :
58
58
fail-fast : true
@@ -70,23 +70,49 @@ jobs:
70
70
- uses : actions/checkout@v4
71
71
with :
72
72
fetch-depth : 50
73
+
73
74
- uses : ./.github/workflows/release_pre_built
74
75
with :
75
76
otp_version : ${{ matrix.otp_version }}
76
77
otp : ${{ matrix.otp }}
77
78
build_docs : ${{ matrix.build_docs }}
79
+
78
80
- uses : actions/attest-build-provenance@v1
79
81
env :
80
82
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
81
83
with :
82
84
subject-path : ' elixir-otp-${{ matrix.otp }}.*'
85
+
83
86
- uses : actions/attest-build-provenance@v1
84
87
if : ${{ matrix.build_docs }}
85
88
env :
86
89
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
87
90
with :
88
91
subject-path : ' Docs.*'
89
92
93
+ - uses : actions/upload-artifact@v4
94
+ with :
95
+ name : elixir-otp-${{ matrix.otp }}
96
+ path : elixir-otp-${{ matrix.otp }}*
97
+
98
+ - uses : actions/upload-artifact@v4
99
+ if : ${{ matrix.build_docs }}
100
+ with :
101
+ name : Docs
102
+ path : Docs.zip*
103
+
104
+ upload :
105
+ needs : build
106
+ runs-on : windows-2022
107
+
108
+ steps :
109
+ - uses : actions/download-artifact@v4
110
+
111
+ - run : |
112
+ mv elixir-otp-*/* .
113
+ mv Docs/* .
114
+ shell: bash
115
+
90
116
- name : " Sign files with Trusted Signing"
91
117
if : github.repository == 'elixir-lang/elixir'
92
118
@@ -104,6 +130,7 @@ jobs:
104
130
timestamp-digest : SHA256
105
131
106
132
- name : Upload Pre-built
133
+ shell : bash
107
134
env :
108
135
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
109
136
run : |
@@ -113,14 +140,13 @@ jobs:
113
140
tag="${{ github.ref_name }}"
114
141
fi
115
142
116
- gh release upload --clobber "$tag" \
117
- elixir-otp-${{ matrix.otp }}.zip \
118
- elixir-otp-${{ matrix.otp }}.zip.sha{1,256}sum \
119
- elixir-otp-${{ matrix.otp }}.exe \
120
- elixir-otp-${{ matrix.otp }}.exe.sha{1,256}sum
121
-
122
- if [ "${{ matrix.build_docs }}" == "build_docs" ]; then
123
- gh release upload --clobber "$tag" \
124
- Docs.zip \
125
- Docs.zip.sha{1,256}sum
126
- fi
143
+ gh release upload \
144
+ --repo ${{ github.repository }} \
145
+ --clobber \
146
+ "$tag" \
147
+ elixir-otp-*.zip \
148
+ elixir-otp-*.zip.sha{1,256}sum \
149
+ elixir-otp-*.exe \
150
+ elixir-otp-*.exe.sha{1,256}sum \
151
+ Docs.zip \
152
+ Docs.zip.sha{1,256}sum
0 commit comments