|
|
@ -24,12 +24,12 @@ jobs: |
|
|
|
- name: Setup Go |
|
|
|
- name: Setup Go |
|
|
|
uses: actions/setup-go@v5 |
|
|
|
uses: actions/setup-go@v5 |
|
|
|
with: |
|
|
|
with: |
|
|
|
go-version: '1.22' |
|
|
|
go-version: '1.23' |
|
|
|
- name: Build Release |
|
|
|
- name: Build Release |
|
|
|
uses: goreleaser/goreleaser-action@v6 |
|
|
|
uses: goreleaser/goreleaser-action@v6 |
|
|
|
with: |
|
|
|
with: |
|
|
|
distribution: goreleaser |
|
|
|
distribution: goreleaser |
|
|
|
version: latest |
|
|
|
version: '~> v2' |
|
|
|
args: release --skip=publish --clean |
|
|
|
args: release --skip=publish --clean |
|
|
|
- name: Upload Assets |
|
|
|
- name: Upload Assets |
|
|
|
uses: softprops/action-gh-release@v1 |
|
|
|
uses: softprops/action-gh-release@v1 |
|
|
@ -56,11 +56,11 @@ jobs: |
|
|
|
dist/*.tar.gz |
|
|
|
dist/*.tar.gz |
|
|
|
dist/checksums.txt |
|
|
|
dist/checksums.txt |
|
|
|
- name: Setup OSSUTIL |
|
|
|
- name: Setup OSSUTIL |
|
|
|
uses: yizhoumo/setup-ossutil@v1 |
|
|
|
uses: yizhoumo/setup-ossutil@v2 |
|
|
|
with: |
|
|
|
with: |
|
|
|
endpoint: ${{ secrets.OSS_ENDPOINT }} |
|
|
|
endpoint: ${{ secrets.OSS_ENDPOINT }} |
|
|
|
access-key-id: ${{ secrets.OSS_ACCESS_KEY_ID }} |
|
|
|
access-key-id: ${{ secrets.OSS_ACCESS_KEY_ID }} |
|
|
|
access-key-secret: ${{ secrets.OSS_ACCESS_KEY_SECRET }} |
|
|
|
access-key-secret: ${{ secrets.OSS_ACCESS_KEY_SECRET }} |
|
|
|
ossutil-version: '1.7.14' |
|
|
|
ossutil-version: '1.7.18' |
|
|
|
- name: Upload Assets to OSS |
|
|
|
- name: Upload Assets to OSS |
|
|
|
run: ossutil cp -r dist/ oss://resource-fit2cloud-com/1panel/package/stable/${{ github.ref_name }}/release/ --include "*.tar.gz" --include "checksums.txt" --only-current-dir --force |
|
|
|
run: ossutil cp -r dist/ oss://resource-fit2cloud-com/1panel/package/stable/${{ github.ref_name }}/release/ --include "*.tar.gz" --include "checksums.txt" --only-current-dir --force |