Skip to content

Commit cd07e47

Browse files
committed
refactor: allow uploading sws artifacts
1 parent 9e70662 commit cd07e47

4 files changed

Lines changed: 4 additions & 2 deletions

File tree

‎.github/workflows/post-release-update-v2.yml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ jobs:
4444
env:
4545
UPLOAD_CHECKSUM: true
4646
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
47+
SWS_TOKEN: ${{ secrets.SWS_TOKEN }}
4748
run: |
4849
scripts/post_release_updates.sh
4950

‎.github/workflows/post-release-update-v3.yml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ jobs:
4444
env:
4545
UPLOAD_CHECKSUM: true
4646
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
47+
SWS_TOKEN: ${{ secrets.SWS_TOKEN }}
4748
run: |
4849
scripts/post_release_updates.sh
4950

‎.vitepress/theme/components/Home.vue‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ function fallbackCopy(text: string, onSuccess: () => void) {
375375

376376
<div class="sws-install-line" role="group" aria-label="Quick install Docker">
377377
<pre
378-
class="install-cmd sws-code"><span class="sws-t-cmd">docker</span> <span class="sws-t-dim">run -p</span> <span class="sws-t-num">8080</span>:<span class="sws-t-num">80</span> <span class="sws-t-dim">-v</span> <span class="sws-t-key">$PWD</span><span class="sws-t-dim">:/public ghcr.io/static-web-server/static-web-server:3</span></pre>
378+
class="install-cmd sws-code"><span class="sws-t-cmd">docker</span> <span class="sws-t-dim">run -p</span> <span class="sws-t-num">8080</span>:<span class="sws-t-num">80</span> <span class="sws-t-dim">-v</span> <span class="sws-t-key">$PWD</span><span class="sws-t-dim">:/public ghcr.io/static-web-server/static-web-server:2</span></pre>
379379
<button class="sws-copy-btn" type="button" aria-label="Copy Docker command" @click="handleCopy">
380380
<svg class="sws-i-copy" viewBox="0 0 24 24" width="14" height="14" aria-hidden="true">
381381
<rect x="8" y="8" width="12" height="12" rx="2" fill="none" stroke="currentColor" stroke-width="1.8" />

‎scripts/post_release_updates.sh‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ if [[ -n "$upload_checksum" ]] && [[ "$upload_checksum" = "true" ]]; then
4949
release_id=$(cat $release_json | jq -r ".id")
5050
curl -LX POST \
5151
--data-binary @$checksum_file_name \
52-
--header "Authorization: token $GITHUB_TOKEN" \
52+
--header "Authorization: token $SWS_TOKEN" \
5353
--header "Content-Type: application/octet-stream" \
5454
https://uploads.github.com/repos/static-web-server/static-web-server/releases/$release_id/assets?name=$checksum_file_name
5555
fi

0 commit comments

Comments
 (0)