From: qydysky Date: Fri, 15 Mar 2024 00:56:02 +0000 (+0800) Subject: Update main.yml X-Git-Tag: v0.1.20240315005802 X-Git-Url: http://127.0.0.1:8081/?a=commitdiff_plain;h=c4b77d794f266db8d86458c6c943d0a8b9c88df1;p=front%2F.git Update main.yml --- diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 3c0bbb1..c352aa4 100755 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -123,3 +123,28 @@ jobs: with: name: macos_go${{ matrix.go }}.zip path: ./macos_go${{ matrix.go }}.zip + + build: + name: Build + needs: [mac-build,w-build,u-build] + runs-on: ubuntu-latest + permissions: + contents: write + steps: + - name: Set up Go 1.x + uses: actions/setup-go@v5 + with: + go-version: ${{ matrix.go }} + + - name: Check out code into the Go module directory + uses: actions/checkout@v4 + + - name: Set Release Name + run: | + echo "TIME=$(date +"%Y%m%d%H%M%S")" >> $GITHUB_ENV + echo "HASH=$(git rev-parse --short "$GITHUB_SHA")" >> $GITHUB_ENV + + - name: Upload a Release Asset + uses: softprops/action-gh-release@v1 + with: + tag_name: v0.1.${{ env.TIME }}