-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (47 loc) · 1.21 KB
/
ci.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
50
51
52
53
54
55
---
name: CI
on:
push:
pull_request:
workflow_dispatch:
jobs:
preflight:
runs-on: ubuntu-latest
outputs:
is_pre_release: ${{ steps.get_version.outputs.is_pre_release }}
version: ${{ steps.get_version.outputs.version }}
steps:
- id: get_version
run: |
VERSION="${GITHUB_REF#refs/*/}"
if [[ "$VERSION" =~ ^v\d+\.\d+\.\d+$ ]]; then
IS_PRE_RELEASE="false"
else
IS_PRE_RELEASE="true"
fi
echo "is_pre_release=${IS_PRE_RELEASE}" >> "$GITHUB_OUTPUT"
echo "version=${VERSION}" >> "$GITHUB_OUTPUT"
build:
uses: ./.github/workflows/build.yml
tag:
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/checkout@v4
with:
fetch-tags: true
fetch-depth: 0
- name: Download
uses: robinraju/[email protected]
with:
repository: 'gofrontier-com/vertag'
latest: true
fileName: 'vertag_Linux_x86_64.tar.gz'
token: ${{ secrets.GITHUB_TOKEN }}
extract: true
- name: Vertag
run: |
ls -la
echo git tag
git tag
./vertag apply --modules-dir .