mirror of
https://jihulab.com/DGP-Studio/Snap.Hutao.git
synced 2025-11-19 21:02:53 +08:00
42 lines
1.1 KiB
YAML
42 lines
1.1 KiB
YAML
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
|
|
timeout-minutes: 5
|
|
uses: robinraju/release-downloader@v1.5
|
|
with:
|
|
repository: "DGP-Studio/Snap.Hutao"
|
|
latest: true
|
|
fileName: "*.zip"
|
|
out-file-path: ./release-download
|
|
|
|
# Upload to Drive
|
|
- name: Upload Drive
|
|
timeout-minutes: 15
|
|
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/* dgpODCN:/snaphutao/Releases/
|