mirror of
https://github.com/wyx2685/V2bX.git
synced 2025-02-02 06:48:14 -05:00
Update release.yml
This commit is contained in:
parent
5a95dac587
commit
229f04ac42
19
.github/workflows/release.yml
vendored
19
.github/workflows/release.yml
vendored
@ -99,7 +99,7 @@ jobs:
|
||||
CGO_ENABLED: 0
|
||||
steps:
|
||||
- name: Checkout codebase
|
||||
uses: actions/checkout@v2
|
||||
uses: actions/checkout@v3
|
||||
- name: Show workflow information
|
||||
id: get_filename
|
||||
run: |
|
||||
@ -107,11 +107,10 @@ jobs:
|
||||
echo "GOOS: $GOOS, GOARCH: $GOARCH, GOARM: $GOARM, GOMIPS: $GOMIPS, RELEASE_NAME: $_NAME"
|
||||
echo "::set-output name=ASSET_NAME::$_NAME"
|
||||
echo "ASSET_NAME=$_NAME" >> $GITHUB_ENV
|
||||
|
||||
- name: Set up Go
|
||||
uses: actions/setup-go@v2
|
||||
uses: actions/setup-go@v3
|
||||
with:
|
||||
go-version: ^1.18
|
||||
go-version: 'stable'
|
||||
|
||||
- name: Get project dependencies
|
||||
run: go mod download
|
||||
@ -176,12 +175,12 @@ jobs:
|
||||
- name: Change the name
|
||||
run: |
|
||||
mv build_assets V2bX-$ASSET_NAME
|
||||
# - name: Upload files to Artifacts
|
||||
# uses: actions/upload-artifact@v2
|
||||
# with:
|
||||
# name: V2bX-${{ steps.get_filename.outputs.ASSET_NAME }}
|
||||
# path: |
|
||||
# ./V2bX-${{ steps.get_filename.outputs.ASSET_NAME }}/*
|
||||
- name: Upload files to Artifacts
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: V2bX-${{ steps.get_filename.outputs.ASSET_NAME }}
|
||||
path: |
|
||||
./V2bX-${{ steps.get_filename.outputs.ASSET_NAME }}/*
|
||||
- name: Upload binaries to release
|
||||
uses: svenstaro/upload-release-action@v2
|
||||
if: github.event_name == 'release'
|
||||
|
Loading…
Reference in New Issue
Block a user