Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 42c8207

Browse files
committed
GitHub: Switched to Cloudflare R2
1 parent 0ab026f commit 42c8207

File tree

2 files changed

+16
-26
lines changed

2 files changed

+16
-26
lines changed

‎.github/workflows/cd-sideload-preview.yml

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -145,20 +145,15 @@ jobs:
145145
timestamp-rfc3161: http://timestamp.acs.microsoft.com
146146
timestamp-digest: SHA256
147147

148-
- name: Login to Azure
149-
uses: azure/login@v2
148+
- name: Upload packages to Cloudflare
149+
uses: ryand56/r2-upload-action@latest
150150
with:
151-
creds: ${{ secrets.AZURE_CREDENTIALS }}
152-
153-
- name: Upload to Azure blob storage
154-
uses: azure/powershell@v2
155-
with:
156-
inlineScript: |
157-
az storage blob upload-batch --account-name "filescommunity" --destination "files" --destination-path "preview" --source ${{ env.APPX_PACKAGE_DIR }} --overwrite true
158-
azPSVersion: "latest"
159-
160-
- name: Logout from Azure
161-
run: 'az logout'
151+
r2-account-id: ${{ secrets.R2_ACCOUNT_ID }}
152+
r2-access-key-id: ${{ secrets.R2_ACCESS_KEY_ID }}
153+
r2-secret-access-key: ${{ secrets.R2_SECRET_ACCESS_KEY }}
154+
r2-bucket: ${{ secrets.R2_BUCKET }}
155+
source-dir: ${{ env.APPX_PACKAGE_DIR }}
156+
destination-dir: ./preview
162157

163158
- name: Upload the packages to GitHub Actions
164159
uses: actions/upload-artifact@v4

‎.github/workflows/cd-sideload-stable.yml

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -145,20 +145,15 @@ jobs:
145145
timestamp-rfc3161: http://timestamp.acs.microsoft.com
146146
timestamp-digest: SHA256
147147

148-
- name: Login to Azure
149-
uses: azure/login@v2
148+
- name: Upload packages to Cloudflare
149+
uses: ryand56/r2-upload-action@latest
150150
with:
151-
creds: ${{ secrets.AZURE_CREDENTIALS }}
152-
153-
- name: Upload to Azure blob storage
154-
uses: azure/powershell@v2
155-
with:
156-
inlineScript: |
157-
az storage blob upload-batch --account-name "filescommunity" --destination "files" --destination-path "stable" --source ${{ env.APPX_PACKAGE_DIR }} --overwrite true
158-
azPSVersion: "latest"
159-
160-
- name: Logout from Azure
161-
run: 'az logout'
151+
r2-account-id: ${{ secrets.R2_ACCOUNT_ID }}
152+
r2-access-key-id: ${{ secrets.R2_ACCESS_KEY_ID }}
153+
r2-secret-access-key: ${{ secrets.R2_SECRET_ACCESS_KEY }}
154+
r2-bucket: ${{ secrets.R2_BUCKET }}
155+
source-dir: ${{ env.APPX_PACKAGE_DIR }}
156+
destination-dir: ./stable
162157

163158
- name: Upload the packages to GitHub Actions
164159
uses: actions/upload-artifact@v4

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /