forked from natesales/pathvector
-
Notifications
You must be signed in to change notification settings - Fork 1
42 lines (37 loc) · 1.08 KB
/
release.yml
File metadata and controls
42 lines (37 loc) · 1.08 KB
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
name: goreleaser
on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+' # symver vmajor.minor.patch format only
jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.18
- name: Install PDF generation dependencies
run: |
sudo apt-get update
sudo apt-get install -y pandoc texlive-xetex
- name: Store signing files
run: |
echo "$JUNIPER_KEY" | base64 -d > vendorbuild/juniper/key.pem
echo "$JUNIPER_CERT" | base64 -d > vendorbuild/juniper/cert.pem
shell: bash
env:
JUNIPER_KEY: ${{ secrets.JUNIPER_KEY }}
JUNIPER_CERT: ${{ secrets.JUNIPER_CERT }}
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
version: latest
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
FURY_TOKEN: ${{ secrets.FURY_TOKEN }}