@@ -90,16 +90,15 @@ jobs:
90
90
set -ex
91
91
92
92
RELEASE_VERSION=$RELEASE_VERSION make deps
93
- RELEASE_VERSION=$RELEASE_VERSION make all
93
+ RELEASE_VERSION=$RELEASE_VERSION make all build-strip
94
+
94
95
ln -s auth gotrue
95
96
tar -czvf auth-v$RELEASE_VERSION-x86.tar.gz auth gotrue migrations/
96
97
mv auth-arm64 auth
97
98
tar -czvf auth-v$RELEASE_VERSION-arm64.tar.gz auth gotrue migrations/
98
99
99
- # Create a "supafast" tarball that can be used by supabase-admin-api to upgrade Auth quickly
100
- rm gotrue
101
- mv auth gotrue
102
- tar -czvf auth-v$RELEASE_VERSION.supafast-arm64.tar.gz gotrue migrations/
100
+ mv auth-arm64-strip auth
101
+ tar -cf - auth gotrue migrations/ | xz -T0 -9e -C crc64 > auth-v$RELEASE_VERSION-arm64.tar.xz
103
102
104
103
- name : Generate checksums
105
104
if : ${{ steps.release.outputs.release_created == 'true' || steps.release.outputs.prs_created == 'true' }}
@@ -110,7 +109,7 @@ jobs:
110
109
local hash_type=$1
111
110
local hash_cmd=$2
112
111
echo "### ${hash_type}" >> checksums.txt
113
- for file in auth-v$RELEASE_VERSION*.tar.gz ; do
112
+ for file in auth-v$RELEASE_VERSION*.tar.{gz,xz} ; do
114
113
echo "\`$file\`:" >> checksums.txt
115
114
echo "\`\`\`" >> checksums.txt
116
115
$hash_cmd "$file" | awk '{print $1}' >> checksums.txt
@@ -124,6 +123,24 @@ jobs:
124
123
generate_checksums "SHA1" "sha1sum"
125
124
generate_checksums "SHA256" "sha256sum"
126
125
126
+ - name : GitHub OIDC Auth
127
+ if : ${{ steps.release.outputs.release_created == 'true' || steps.release.outputs.prs_created == 'true' }}
128
+ uses :
aws-actions/[email protected]
129
+ with :
130
+ aws-region : ap-southeast-1
131
+ role-to-assume : arn:aws:iam::${{ secrets.SHARED_SERVICES_AWS_ACCOUNT_ID }}:role/supabase-github-oidc-role
132
+ role-session-name : shared-services-jump
133
+
134
+ - name : Assume destination role
135
+ uses :
aws-actions/[email protected]
136
+ if : ${{ steps.release.outputs.release_created == 'true' || steps.release.outputs.prs_created == 'true' }}
137
+ with :
138
+ aws-region : ap-southeast-1
139
+ role-to-assume : arn:aws:iam::${{ secrets.SHARED_SERVICES_AWS_ACCOUNT_ID }}:role/supabase-auth-artifacts-role-936f98a
140
+ role-skip-session-tagging : true
141
+ role-session-name : upload-assets
142
+ role-chaining : true
143
+
127
144
- name : Upload release artifacts
128
145
if : ${{ steps.release.outputs.release_created == 'true' || steps.release.outputs.prs_created == 'true' }}
129
146
run : |
@@ -135,7 +152,7 @@ jobs:
135
152
CHECKSUM_CONTENT=$(cat checksums.txt)
136
153
137
154
RELEASE_NOTES=$(printf "This is a release candidate. See release-please PR #%s for context.\n\n%s\n" "$PR_NUMBER" "$CHECKSUM_CONTENT")
138
-
155
+
139
156
GH_TOKEN='${{ github.token }}' gh release \
140
157
create $RELEASE_NAME \
141
158
--title "v$RELEASE_VERSION" \
@@ -171,7 +188,9 @@ jobs:
171
188
FULL_NOTES=$(printf "%s\n\n%s\n" "$EXISTING_NOTES" "$CHECKSUM_CONTENT")
172
189
GH_TOKEN='${{ github.token }}' gh release edit $RELEASE_NAME -n "$FULL_NOTES"
173
190
174
- GH_TOKEN='${{ github.token }}' gh release upload $RELEASE_NAME ./auth-v$RELEASE_VERSION-x86.tar.gz ./auth-v$RELEASE_VERSION-arm64.tar.gz ./auth-v$RELEASE_VERSION.supafast-arm64.tar.gz
191
+ GH_TOKEN='${{ github.token }}' gh release upload $RELEASE_NAME ./auth-v$RELEASE_VERSION-x86.tar.gz ./auth-v$RELEASE_VERSION-arm64.tar.gz ./auth-v$RELEASE_VERSION-arm64.tar.xz
192
+
193
+ aws s3 cp ./auth-v$RELEASE_VERSION-arm64.tar.xz s3://supabase-internal-artifacts/auth/$RELEASE_VERSION/
175
194
176
195
publish :
177
196
needs :
0 commit comments