generated from meza/create-meza-cli
-
-
Notifications
You must be signed in to change notification settings - Fork 5
46 lines (38 loc) · 989 Bytes
/
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
name: Verify and Release
permissions:
issues: write
checks: write
contents: write
pull-requests: write
on:
- push
- pull_request
env:
LEFTHOOK: 0
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: meza/action-go-setup@main
id: go
name: Set up Go
with:
go-version: '1.22.6'
GH_TOKEN: ${{ secrets.GH_TOKEN }}
- name: Download translations
uses: locize/download@v1
with:
path: ./internal/i18n/localise
api-key: ${{ secrets.LOCIZE_API_KEY }}
project-id: ${{ secrets.LOCIZE_PROJECT_ID }}
- name: Build Languages
run: go run cmd/lang/buildLang.go
- uses: meza/action-go-test@main
- name: Build Distributables
run: make build
# - name: Release
# if: ${{ steps.go.outputs.new-release-published == 'true' }}
# env:
# GH_TOKEN: ${{ secrets.GH_TOKEN }}
# run: |
# npx semantic-release