Skip to content

Commit

Permalink
[FIX][Build APP]Rclone (#20)
Browse files Browse the repository at this point in the history
* Update buildapp-dev.yml

* Update buildapp-dev.yml

* Update buildapp.yml
  • Loading branch information
thun888 committed Mar 10, 2024
1 parent 307899e commit 4785b88
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/buildapp-dev.yml
Expand Up @@ -17,22 +17,22 @@ jobs:

- name: Checkout code
uses: actions/checkout@v3

- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.21'

- name: Install UPX
run: sudo apt-get install upx

- name: download modules
run: go mod download

- name: Run build script
# 传入commit sha
# 传入commit sha
run: bash build.sh ${{ github.sha }}

# 安装 rclone
# dev版本不另外发release
- name: Install rclone
Expand All @@ -43,7 +43,9 @@ jobs:
- name: Configure rclone
run: |
mkdir -p ~/.config/rclone
echo "${{ secrets.RCLONECONFIG }}" > ~/.config/rclone/rclone.conf
cat > ~/.config/rclone/rclone.conf << EOF
${{ secrets.RCLONECONFIG }}
EOF
- name: Sync to OneDrive
run: |
sudo timedatectl set-timezone "Asia/Shanghai"
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/buildapp.yml
Expand Up @@ -146,7 +146,9 @@ jobs:
- name: Configure rclone
run: |
mkdir -p ~/.config/rclone
echo ${{ secrets.RCLONECONFIG }} > ~/.config/rclone
cat > ~/.config/rclone/rclone.conf << EOF
${{ secrets.RCLONECONFIG }}
EOF
- name: Sync to OneDrive
run: |
sudo timedatectl set-timezone "Asia/Shanghai"
Expand Down

0 comments on commit 4785b88

Please sign in to comment.