-
Notifications
You must be signed in to change notification settings - Fork 1
46 lines (37 loc) · 1.07 KB
/
ci.yaml
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
name: ci
on: [push, pull_request, workflow_dispatch]
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.22'
- uses: gacts/install-hurl@v1
- uses: cue-lang/[email protected]
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ github.actor }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- run: CUE_DEBUG_TOOLS_FLOW=true cue cmd run_test
- uses: actions/upload-artifact@v4
with:
name: xtemplate-amd64-linux
path: 'dist/xtemplate-amd64-linux/*'
- uses: actions/upload-artifact@v4
with:
name: xtemplate-amd64-darwin
path: 'dist/xtemplate-amd64-darwin/*'
- uses: actions/upload-artifact@v4
with:
name: xtemplate-amd64-windows
path: 'dist/xtemplate-amd64-windows/*'
- name: Release
if: startsWith(github.ref, 'refs/tags/v')
uses: softprops/action-gh-release@v1
with:
files: 'dist/*.zip'