Browse Source

fix waiting, binary name.

pull/2321/head
Chris Lu 3 years ago
parent
commit
ce9e606eb2
  1. 13
      .github/workflows/binaries_dev.yml
  2. 2
      .github/workflows/binaries_release.yml

13
.github/workflows/binaries_dev.yml

@ -7,7 +7,6 @@ on:
jobs: jobs:
cleanup: cleanup:
name: Build
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
@ -23,7 +22,6 @@ jobs:
build_dev: build_dev:
needs: cleanup needs: cleanup
name: Build
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy: strategy:
matrix: matrix:
@ -44,15 +42,10 @@ jobs:
- name: Check out code into the Go module directory - name: Check out code into the Go module directory
uses: actions/checkout@v2 uses: actions/checkout@v2
- name: Wait for the deletion
uses: jakejarvis/wait-action@master
with:
time: '60s'
- name: Set BUILD_TIME env - name: Set BUILD_TIME env
run: echo BUILD_TIME=$(date -u +%Y%m%d-%H%M) >> ${GITHUB_ENV} run: echo BUILD_TIME=$(date -u +%Y%m%d-%H%M) >> ${GITHUB_ENV}
- name: Go Release Binaries
- name: Go Release Binaries Large Disk
uses: wangyoucao577/go-release-action@v1.20 uses: wangyoucao577/go-release-action@v1.20
with: with:
github_token: ${{ secrets.GITHUB_TOKEN }} github_token: ${{ secrets.GITHUB_TOKEN }}
@ -65,10 +58,10 @@ jobs:
ldflags: -extldflags -static -X github.com/chrislusf/seaweedfs/weed/util.COMMIT=${{github.sha}} ldflags: -extldflags -static -X github.com/chrislusf/seaweedfs/weed/util.COMMIT=${{github.sha}}
# Where to run `go build .` # Where to run `go build .`
project_path: weed project_path: weed
binary_name: weed-large-disk
binary_name: weed
asset_name: "weed-large-disk-${{ env.BUILD_TIME }}-${{ matrix.goos }}-${{ matrix.goarch }}" asset_name: "weed-large-disk-${{ env.BUILD_TIME }}-${{ matrix.goos }}-${{ matrix.goarch }}"
- name: Go Release Binaries
- name: Go Release Binaries Normal Volume Size
uses: wangyoucao577/go-release-action@v1.20 uses: wangyoucao577/go-release-action@v1.20
with: with:
github_token: ${{ secrets.GITHUB_TOKEN }} github_token: ${{ secrets.GITHUB_TOKEN }}

2
.github/workflows/binaries_release.yml

@ -33,7 +33,7 @@ jobs:
steps: steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Go Release Binaries
- name: Go Release Binaries Normal Volume Size
uses: wangyoucao577/go-release-action@v1.20 uses: wangyoucao577/go-release-action@v1.20
with: with:
github_token: ${{ secrets.GITHUB_TOKEN }} github_token: ${{ secrets.GITHUB_TOKEN }}

Loading…
Cancel
Save