Skip to content

Commit

Permalink
Fix git tag detection
Browse files Browse the repository at this point in the history
  • Loading branch information
deluan committed Apr 23, 2020
1 parent a756751 commit f5572b8
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 12 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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:
Expand Down
13 changes: 8 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit f5572b8

Please sign in to comment.