diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 71d89d90..2cf9cc51 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -23,7 +23,7 @@ jobs: id: go - name: Check out code into the Go module directory - uses: actions/checkout@v1 + uses: actions/checkout@v2 - uses: actions/cache@v1 id: cache-go @@ -44,7 +44,7 @@ jobs: name: Test UI runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v2 - uses: actions/setup-node@v1 with: node-version: 13 @@ -85,12 +85,10 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout Code - uses: actions/checkout@v1 - with: - fetch-depth: 0 + uses: actions/checkout@v2 - - name: Fetch tags - run: git fetch --depth=1 origin +refs/tags/*:refs/tags/* + - name: Unshallow + run: git fetch --prune --unshallow - uses: actions/download-artifact@v1 with: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index bf1bcf02..6d21c60a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -2,29 +2,32 @@ name: Release on: push: tags: - - '*' + - "*" jobs: release: name: Release runs-on: ubuntu-latest steps: - name: Checkout Code - uses: actions/checkout@v1 + uses: actions/checkout@v2 with: fetch-depth: 0 + + - name: Unshallow + run: git fetch --prune --unshallow + - uses: actions/setup-node@v1 with: node-version: 13 + - name: Build UI run: | cd ui npm ci npm run build - - name: Fetch tags - run: git fetch --depth=1 origin +refs/tags/*:refs/tags/* + - name: Run GoReleaser uses: docker://deluan/ci-goreleaser:1.14.1-1 - env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: