Temporarily send artifacts to r2 (#391)

This commit is contained in:
Garrett Cox 2024-05-14 12:17:44 -05:00
parent 14f293e15a
commit 5a5fc3b86f

View File

@ -148,12 +148,23 @@ jobs:
(cd build-windows && cpack)
cd ..
mv _packages/*.zip 2ship-windows.zip
- name: Unzip package
run: Expand-Archive -Path 2ship-windows.zip -DestinationPath 2ship-windows
mv _packages/*.zip _packages/2ship-windows.zip
# Temporarily replaced with an upload to R2 until we go public
# - name: Unzip package
# run: Expand-Archive -Path 2ship-windows.zip -DestinationPath 2ship-windows
# - name: Upload build
# if: ${{ startsWith(github.ref, 'refs/heads/develop') }}
# uses: actions/upload-artifact@v4
# with:
# name: 2ship-windows
# path: 2ship-windows
- name: Upload build
if: ${{ startsWith(github.ref, 'refs/heads/develop') }}
uses: actions/upload-artifact@v4
uses: ryand56/r2-upload-action@latest
with:
name: 2ship-windows
path: 2ship-windows
r2-account-id: ${{ secrets.R2_ACCOUNT_ID }}
r2-access-key-id: ${{ secrets.R2_ACCESS_KEY_ID }}
r2-secret-access-key: ${{ secrets.R2_SECRET_ACCESS_KEY }}
r2-bucket: ${{ secrets.R2_BUCKET }}
source-dir: _packages
destination-dir: 2ship