Skip to content
This repository has been archived by the owner on Oct 19, 2024. It is now read-only.

Commit

Permalink
Support upload to Oracle s3 (#1)
Browse files Browse the repository at this point in the history
Co-Authored-By: 余空 <[email protected]>
  • Loading branch information
pzcn and YuKongA committed Mar 21, 2024
1 parent 8c02735 commit 144a2e2
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/Build ROM for Houji.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,17 +33,25 @@ jobs:
run: |
mkdir -p "$GITHUB_WORKSPACE"/GithubRelease
cd "$GITHUB_WORKSPACE"/GithubRelease
sudo split -b 1536M -d "$GITHUB_WORKSPACE"/zip/"${{ env.rom_name }}" "${{ env.rom_name }}"
sudo split -b 1536M -d "$GITHUB_WORKSPACE"/zip/${{ env.rom_name }} ${{ env.rom_name }}
cd "$GITHUB_WORKSPACE"
touch file.log
echo -e "底包版本: ${{ env.vendor_os_version }}\n底包安全补丁版本: ${{ env.vendor_security_patch }}\n底包基线版本: ${{ env.vendor_base_line}}\n\n移植包版本: ${{ env.port_os_version }}\n移植包安全补丁版本: ${{ env.port_security_patch }}\n移植包基线版本: ${{ env.port_base_line }}" > file.log
- name: 上传到 Github Release
uses: ncipollo/release-action@main
with:
artifacts: ${{ github.workspace }}/GithubRelease/*
name: "${{ env.port_os_version }}"
tag: "${{ env.port_os_version }}"
name: ${{ env.port_os_version }}
tag: ${{ env.port_os_version }}
bodyFile: "${{ github.workspace }}/file.log"
allowUpdates: true
artifactErrorsFailBuild: true
token: ${{ secrets.GITHUB_TOKEN }}
- name: 上传到 Oracle S3
run: |
sudo -v ; curl https://rclone.org/install.sh | sudo bash
mkdir -p ~/.config/rclone/
echo ${{ secrets.confbase64 }} > base64.txt
base64 --decode base64.txt > ~/.config/rclone/rclone.conf
rclone delete kr:/public-bucket/houji
rclone mkdir kr:/public-bucket/houji
rclone copy -P "$GITHUB_WORKSPACE"/zip/${{ env.rom_name }} kr:/public-bucket/houji

0 comments on commit 144a2e2

Please sign in to comment.