mirror of
https://code.forgejo.org/forgejo/runner.git
synced 2025-09-15 18:57:01 +00:00
makefile cleanups
This commit is contained in:
parent
1534808d0e
commit
2d11060363
2 changed files with 16 additions and 20 deletions
17
.github/workflows/push.yml
vendored
17
.github/workflows/push.yml
vendored
|
@ -5,7 +5,6 @@ jobs:
|
|||
lint:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- run: echo ${{github.ref}}
|
||||
- uses: actions/checkout@v2
|
||||
- uses: docker://golangci/golangci-lint:v1.23.6
|
||||
with:
|
||||
|
@ -24,3 +23,19 @@ jobs:
|
|||
env:
|
||||
CGO_ENABLED: 0
|
||||
GOFLAGS: -mod=vendor
|
||||
|
||||
release:
|
||||
if: startsWith(github.ref, "refs/tags/v")
|
||||
needs:
|
||||
- lint
|
||||
- test
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: GoReleaser
|
||||
uses: goreleaser/goreleaser-action@v1
|
||||
with:
|
||||
version: latest
|
||||
args: release --rm-dist
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GORELEASER_GITHUB_TOKEN }}
|
||||
|
|
19
.github/workflows/tag.yml
vendored
19
.github/workflows/tag.yml
vendored
|
@ -1,19 +0,0 @@
|
|||
name: tag
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- 'v*'
|
||||
|
||||
jobs:
|
||||
release:
|
||||
if: startsWith(github.ref, "v")
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: GoReleaser
|
||||
uses: goreleaser/goreleaser-action@v1
|
||||
with:
|
||||
version: latest
|
||||
args: release --rm-dist
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GORELEASER_GITHUB_TOKEN }}
|
Loading…
Add table
Add a link
Reference in a new issue