From e855b5d6a3df985e37f6846cf5114b105b4c98bf Mon Sep 17 00:00:00 2001 From: MustardChef <68516357+MustardChef@users.noreply.github.com> Date: Fri, 15 Dec 2023 03:10:42 +0000 Subject: [PATCH 1/2] Enable OneDrive Uploads for build.yml --- .github/workflows/build.yml | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 474279a..504afd3 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -186,17 +186,17 @@ jobs: id: run run: ("hash=" + $(Get-FileHash -Path ${{ needs.build.outputs.zipname }}.7z -Algorithm SHA256).Hash.ToLower().ToString()) | Out-File -FilePath $env:GITHUB_OUTPUT -Encoding UTF8 -Append - # - name: Setup rclone 🎚️ - # uses: AnimMouse/setup-rclone@v1.5.1 - # with: - # rclone_config: ${{ secrets.RCLONE_CONFIG }} + - name: Setup rclone 🎚️ + uses: AnimMouse/setup-rclone@v1.5.1 + with: + rclone_config: ${{ secrets.RCLONE_CONFIG }} - # - name: Upload build to OneDrive for Windows 11 x64 Build⏫ - # run: | - # echo ${{ needs.build.outputs.onedrivepath }} - # rclone copy ${{ needs.build.outputs.zipname }}.7z OneDrive:"${{ needs.build.outputs.onedrivepath }}" --create-empty-src-dirs - # env: - # RCLONE_CONFIG_PASS: ${{ secrets.RCLONE_CONFIG_PASS }} + - name: Upload build to OneDrive for Windows 11 x64 Build⏫ + run: | + echo ${{ needs.build.outputs.onedrivepath }} + rclone copy ${{ needs.build.outputs.zipname }}.7z OneDrive:"${{ needs.build.outputs.onedrivepath }}" --create-empty-src-dirs + env: + RCLONE_CONFIG_PASS: ${{ secrets.RCLONE_CONFIG_PASS }} - name: Upload Windows 11 x64 build to release 🤌 uses: softprops/action-gh-release@v1 @@ -241,12 +241,12 @@ jobs: id: run2 run: ("hash=" + $(Get-FileHash -Path "${{ needs.build.outputs.zipname }}_Windows_10.7z" -Algorithm SHA256).Hash.ToLower().ToString()) | Out-File -FilePath $env:GITHUB_OUTPUT -Encoding UTF8 -Append - # - name: Upload build to OneDrive for Windows 10 x64 Build⏫ - # run: | - # echo ${{ needs.build.outputs.onedrivepathwin10 }} - # rclone copy ${{ needs.build.outputs.zipname }}_Windows_10.7z OneDrive:"${{ needs.build.outputs.onedrivepathwin10 }}" --create-empty-src-dirs - # env: - # RCLONE_CONFIG_PASS: ${{ secrets.RCLONE_CONFIG_PASS }} + - name: Upload build to OneDrive for Windows 10 x64 Build⏫ + run: | + echo ${{ needs.build.outputs.onedrivepathwin10 }} + rclone copy ${{ needs.build.outputs.zipname }}_Windows_10.7z OneDrive:"${{ needs.build.outputs.onedrivepathwin10 }}" --create-empty-src-dirs + env: + RCLONE_CONFIG_PASS: ${{ secrets.RCLONE_CONFIG_PASS }} - name: Upload Windows 10 x64 build to release 🤌 uses: softprops/action-gh-release@v1 From 665c02c0a4a70299b507c1436cf83da28596bf56 Mon Sep 17 00:00:00 2001 From: MustardChef <68516357+MustardChef@users.noreply.github.com> Date: Fri, 15 Dec 2023 03:12:38 +0000 Subject: [PATCH 2/2] Enable OneDrive for buildarm64.yml --- .github/workflows/buildarm64.yml | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/workflows/buildarm64.yml b/.github/workflows/buildarm64.yml index 69145a9..d35901f 100644 --- a/.github/workflows/buildarm64.yml +++ b/.github/workflows/buildarm64.yml @@ -176,17 +176,17 @@ jobs: id: run run: ("hash=" + $(Get-FileHash -Path ${{ needs.build.outputs.zipname }}.7z -Algorithm SHA256).Hash.ToLower().ToString()) | Out-File -FilePath $env:GITHUB_OUTPUT -Encoding UTF8 -Append - # - name: Setup rclone 🎚️ - # uses: AnimMouse/setup-rclone@v1.5.1 - # with: - # rclone_config: ${{ secrets.RCLONE_CONFIG }} + - name: Setup rclone 🎚️ + uses: AnimMouse/setup-rclone@v1.5.1 + with: + rclone_config: ${{ secrets.RCLONE_CONFIG }} - # - name: Upload build to OneDrive for Windows 11 arm64 Build⏫ - # run: | - # echo ${{ needs.build.outputs.onedrivepath }} - # rclone copy ${{ needs.build.outputs.zipname }}.7z OneDrive:"${{ needs.build.outputs.onedrivepath }}" --create-empty-src-dirs - # env: - # RCLONE_CONFIG_PASS: ${{ secrets.RCLONE_CONFIG_PASS }} + - name: Upload build to OneDrive for Windows 11 arm64 Build⏫ + run: | + echo ${{ needs.build.outputs.onedrivepath }} + rclone copy ${{ needs.build.outputs.zipname }}.7z OneDrive:"${{ needs.build.outputs.onedrivepath }}" --create-empty-src-dirs + env: + RCLONE_CONFIG_PASS: ${{ secrets.RCLONE_CONFIG_PASS }} - name: Upload Windows 11 arm64 build to release 🤌 uses: softprops/action-gh-release@v1 @@ -196,4 +196,4 @@ jobs: append_body: false tag_name: ${{ needs.build.outputs.tag }} token: ${{ secrets.GITHUB_TOKEN }} - \ No newline at end of file +