From 02fae69d1ebc7dd199c4cd105d1b23a54e36f003 Mon Sep 17 00:00:00 2001 From: Masterain Date: Tue, 18 Oct 2022 12:05:43 -0700 Subject: [PATCH 1/2] Create PublishDistribution.yml --- .github/workflows/PublishDistribution.yml | 39 +++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .github/workflows/PublishDistribution.yml diff --git a/.github/workflows/PublishDistribution.yml b/.github/workflows/PublishDistribution.yml new file mode 100644 index 0000000000..97e97b0e3f --- /dev/null +++ b/.github/workflows/PublishDistribution.yml @@ -0,0 +1,39 @@ +name: PublishDistribution + +on: + release: + types: [published] + + workflow_dispatch: + +# A workflow run is made up of one or more jobs that can run sequentially or in parallel +jobs: + Publish: + runs-on: ubuntu-latest + + steps: + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - name: Checkout Repo + uses: actions/checkout@v3 + + # Download Publish.zip + - name: Download Release + uses: robinraju/release-downloader@v1.5 + with: + repository: "DGP-Studio/Snap.Hutao" + latest: true + fileName: "*.zip" + out-file-path: ./release-download + + # Upload to OD21 (Testing) + - name: Upload OD21 + env: + RCCONF: ${{ secrets.RCCONF }} + run: | + curl https://rclone.org/install.sh | sudo bash + mkdir -p ~/.config/rclone/ + cat << EOF > ~/.config/rclone/rclone.conf + $RCCONF + EOF + + rclone copy ./release-download/* dgp-od-cn:/snaphutao/Releases From fa650a95c54724ae452c30806307f04adb1de1e5 Mon Sep 17 00:00:00 2001 From: Masterain Date: Tue, 18 Oct 2022 12:23:53 -0700 Subject: [PATCH 2/2] Update PublishDistribution.yml --- .github/workflows/PublishDistribution.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/PublishDistribution.yml b/.github/workflows/PublishDistribution.yml index 97e97b0e3f..6a24b388a5 100644 --- a/.github/workflows/PublishDistribution.yml +++ b/.github/workflows/PublishDistribution.yml @@ -36,4 +36,4 @@ jobs: $RCCONF EOF - rclone copy ./release-download/* dgp-od-cn:/snaphutao/Releases + rclone copy ./release-download/* dgpODCN:/snaphutao/Releases/