Fix git tag detection

This commit is contained in:
Deluan
2020-04-17 13:22:11 -04:00
committed by Deluan Quintão
parent a756751cc6
commit f5572b8447
2 changed files with 13 additions and 12 deletions
+5 -7
View File
@@ -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:
+8 -5
View File
@@ -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: