-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (42 loc) · 1.03 KB
/
github-actions.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: go-match
on:
workflow_dispatch:
pull_request:
push:
branches:
- dev
- main
tags:
- "*"
jobs:
info:
uses: idelchi/devenv/.github/workflows/info.yml@dev
cleanup:
uses: idelchi/devenv/.github/workflows/cleanup.yml@dev
if: github.ref == 'refs/heads/dev'
needs: info
permissions:
actions: write
verify:
if: ${{ ! startsWith(github.ref, 'refs/tags/') }}
uses: idelchi/devenv/.github/workflows/task.yml@dev
needs: info
next-tag:
uses: idelchi/devenv/.github/workflows/next-tag.yml@dev
if: github.ref == 'refs/heads/dev'
needs: verify
prerelease:
uses: idelchi/devenv/.github/workflows/prerelease.yml@dev
if: github.ref == 'refs/heads/dev'
needs: next-tag
permissions:
contents: write
actions: write
with:
tag: ${{ needs.next-tag.outputs.next }}-beta
release:
uses: idelchi/devenv/.github/workflows/gorelease.yml@dev
if: startsWith(github.ref, 'refs/tags/')
needs: info
permissions:
contents: write