fix: oss action

This commit is contained in:
overtrue
2025-06-30 21:04:23 +08:00
parent a231f05d4f
commit 62e68d4e51
+21 -21
View File
@@ -7,7 +7,7 @@ on:
push: push:
branches: branches:
- main - main
tags: [ "v*", "*" ] tags: ["v*", "*"]
jobs: jobs:
build-rustfs: build-rustfs:
@@ -15,25 +15,25 @@ jobs:
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
os: [ ubuntu-latest, macos-latest, windows-latest ] os: [ubuntu-latest, macos-latest, windows-latest]
variant: variant:
- { - {
profile: release, profile: release,
target: x86_64-unknown-linux-musl, target: x86_64-unknown-linux-musl,
glibc: "default", glibc: "default",
} }
- { - {
profile: release, profile: release,
target: x86_64-unknown-linux-gnu, target: x86_64-unknown-linux-gnu,
glibc: "default", glibc: "default",
} }
- { profile: release, target: aarch64-apple-darwin, glibc: "default" } - { profile: release, target: aarch64-apple-darwin, glibc: "default" }
#- { profile: release, target: aarch64-unknown-linux-gnu, glibc: "default" } #- { profile: release, target: aarch64-unknown-linux-gnu, glibc: "default" }
- { - {
profile: release, profile: release,
target: aarch64-unknown-linux-musl, target: aarch64-unknown-linux-musl,
glibc: "default", glibc: "default",
} }
#- { profile: release, target: x86_64-pc-windows-msvc, glibc: "default" } #- { profile: release, target: x86_64-pc-windows-msvc, glibc: "default" }
exclude: exclude:
# Linux targets on non-Linux systems # Linux targets on non-Linux systems
@@ -378,10 +378,10 @@ jobs:
if: startsWith(github.ref, 'refs/tags/') || github.ref == 'refs/heads/main' if: startsWith(github.ref, 'refs/tags/') || github.ref == 'refs/heads/main'
shell: bash shell: bash
env: env:
OSSUTIL_ACCESS_KEY_ID: ${{ secrets.ALICLOUDOSS_KEY_ID }} OSS_ACCESS_KEY_ID: ${{ secrets.ALICLOUDOSS_KEY_ID }}
OSSUTIL_ACCESS_KEY_SECRET: ${{ secrets.ALICLOUDOSS_KEY_SECRET }} OSS_ACCESS_KEY_SECRET: ${{ secrets.ALICLOUDOSS_KEY_SECRET }}
OSS_REGION: cn-beijing OSS_REGION: cn-beijing
OSSUTIL_ENDPOINT: https://oss-cn-beijing.aliyuncs.com OSS_ENDPOINT: https://oss-cn-beijing.aliyuncs.com
run: | run: |
echo "::group::Uploading files to OSS" echo "::group::Uploading files to OSS"
# Upload the artifact file to two different paths # Upload the artifact file to two different paths
@@ -507,10 +507,10 @@ jobs:
if: startsWith(github.ref, 'refs/tags/') if: startsWith(github.ref, 'refs/tags/')
shell: bash shell: bash
env: env:
OSSUTIL_ACCESS_KEY_ID: ${{ secrets.ALICLOUDOSS_KEY_ID }} OSS_ACCESS_KEY_ID: ${{ secrets.ALICLOUDOSS_KEY_ID }}
OSSUTIL_ACCESS_KEY_SECRET: ${{ secrets.ALICLOUDOSS_KEY_SECRET }} OSS_ACCESS_KEY_SECRET: ${{ secrets.ALICLOUDOSS_KEY_SECRET }}
OSS_REGION: cn-beijing OSS_REGION: cn-beijing
OSSUTIL_ENDPOINT: https://oss-cn-beijing.aliyuncs.com OSS_ENDPOINT: https://oss-cn-beijing.aliyuncs.com
run: | run: |
echo "::group::Uploading GUI files to OSS" echo "::group::Uploading GUI files to OSS"
# Upload the GUI artifact file to two different paths # Upload the GUI artifact file to two different paths
@@ -520,7 +520,7 @@ jobs:
merge: merge:
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: [ build-rustfs ] needs: [build-rustfs]
if: startsWith(github.ref, 'refs/tags/') if: startsWith(github.ref, 'refs/tags/')
steps: steps:
- uses: actions/upload-artifact/merge@v4 - uses: actions/upload-artifact/merge@v4