mirror of
https://github.com/KaySar12/NextZen-UserService.git
synced 2025-06-26 21:50:57 +07:00
fix wrong checksum.txt gets uploaded to OSS
Signed-off-by: Tiger Wang <tigerwang@outlook.com>
This commit is contained in:
parent
4fc80b5a1e
commit
0d57552952
17
.github/workflows/release.yml
vendored
17
.github/workflows/release.yml
vendored
@ -12,32 +12,27 @@ jobs:
|
|||||||
goreleaser:
|
goreleaser:
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
steps:
|
steps:
|
||||||
-
|
- name: Install dependencies for cross-compiling
|
||||||
name: Install dependencies for cross-compiling
|
|
||||||
run: |
|
run: |
|
||||||
sudo apt update
|
sudo apt update
|
||||||
sudo apt-get --no-install-recommends --yes install \
|
sudo apt-get --no-install-recommends --yes install \
|
||||||
upx libc6-dev-amd64-cross \
|
upx libc6-dev-amd64-cross \
|
||||||
gcc-aarch64-linux-gnu libc6-dev-arm64-cross \
|
gcc-aarch64-linux-gnu libc6-dev-arm64-cross \
|
||||||
gcc-arm-linux-gnueabihf libc6-dev-armhf-cross
|
gcc-arm-linux-gnueabihf libc6-dev-armhf-cross
|
||||||
-
|
- name: Checkout
|
||||||
name: Checkout
|
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
-
|
- name: Fetch all tags
|
||||||
name: Fetch all tags
|
|
||||||
run: git fetch --force --tags
|
run: git fetch --force --tags
|
||||||
- name: Get version
|
- name: Get version
|
||||||
id: get_version
|
id: get_version
|
||||||
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
|
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
|
||||||
-
|
- name: Set up Go
|
||||||
name: Set up Go
|
|
||||||
uses: actions/setup-go@v2
|
uses: actions/setup-go@v2
|
||||||
with:
|
with:
|
||||||
go-version: 1.19
|
go-version: 1.19
|
||||||
-
|
- name: Run GoReleaser
|
||||||
name: Run GoReleaser
|
|
||||||
uses: goreleaser/goreleaser-action@v2
|
uses: goreleaser/goreleaser-action@v2
|
||||||
with:
|
with:
|
||||||
# either 'goreleaser' (default) or 'goreleaser-pro'
|
# either 'goreleaser' (default) or 'goreleaser-pro'
|
||||||
@ -57,7 +52,7 @@ jobs:
|
|||||||
region: oss-cn-shanghai
|
region: oss-cn-shanghai
|
||||||
bucket: casaos
|
bucket: casaos
|
||||||
assets: |
|
assets: |
|
||||||
dist/checksums.txt:/IceWhaleTech/CasaOS/releases/download/${{ steps.get_version.outputs.VERSION }}/checksums.txt
|
dist/checksums.txt:/IceWhaleTech/CasaOS-UserService/releases/download/${{ steps.get_version.outputs.VERSION }}/checksums.txt
|
||||||
dist/linux-arm-7--casaos-user-service-${{ steps.get_version.outputs.VERSION }}.tar.gz:/IceWhaleTech/CasaOS-UserService/releases/download/${{ steps.get_version.outputs.VERSION }}/linux-arm-7-casaos-user-service-${{ steps.get_version.outputs.VERSION }}.tar.gz
|
dist/linux-arm-7--casaos-user-service-${{ steps.get_version.outputs.VERSION }}.tar.gz:/IceWhaleTech/CasaOS-UserService/releases/download/${{ steps.get_version.outputs.VERSION }}/linux-arm-7-casaos-user-service-${{ steps.get_version.outputs.VERSION }}.tar.gz
|
||||||
dist/linux-arm64-casaos-user-service-${{ steps.get_version.outputs.VERSION }}.tar.gz:/IceWhaleTech/CasaOS-UserService/releases/download/${{ steps.get_version.outputs.VERSION }}/linux-arm64-casaos-user-service-${{ steps.get_version.outputs.VERSION }}.tar.gz
|
dist/linux-arm64-casaos-user-service-${{ steps.get_version.outputs.VERSION }}.tar.gz:/IceWhaleTech/CasaOS-UserService/releases/download/${{ steps.get_version.outputs.VERSION }}/linux-arm64-casaos-user-service-${{ steps.get_version.outputs.VERSION }}.tar.gz
|
||||||
dist/linux-amd64-casaos-user-service-${{ steps.get_version.outputs.VERSION }}.tar.gz:/IceWhaleTech/CasaOS-UserService/releases/download/${{ steps.get_version.outputs.VERSION }}/linux-amd64-casaos-user-service-${{ steps.get_version.outputs.VERSION }}.tar.gz
|
dist/linux-amd64-casaos-user-service-${{ steps.get_version.outputs.VERSION }}.tar.gz:/IceWhaleTech/CasaOS-UserService/releases/download/${{ steps.get_version.outputs.VERSION }}/linux-amd64-casaos-user-service-${{ steps.get_version.outputs.VERSION }}.tar.gz
|
||||||
|
Loading…
Reference in New Issue
Block a user