-
-
Notifications
You must be signed in to change notification settings - Fork 1
54 lines (51 loc) · 1.64 KB
/
release-please.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
on:
push:
branches:
- main
permissions:
contents: write
pull-requests: write
name: release-please
jobs:
release-please:
runs-on: ubuntu-latest
steps:
- uses: google-github-actions/release-please-action@v3
id: release_please
name: Run release please
with:
release-type: go
token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/checkout@v3
if: ${{ steps.release_please.outputs.release_created }}
with:
fetch-depth: 0
- name: Fetch source
if: ${{ steps.release_please.outputs.release_created }}
id: git_fetch
run: git fetch --force --tags
- name: Setup Go
if: ${{ steps.release_please.outputs.release_created }}
id: setup_go
uses: actions/setup-go@v4
with:
go-version: "1.20"
- name: Install dependencies
if: ${{ steps.release_please.outputs.release_created }}
id: install_linux_deps
run: sudo apt-get install -y libevdev-dev desktop-file-utils gcc libgl1-mesa-dev libegl1-mesa-dev libgles2-mesa-dev libx11-dev xorg-dev
- name: Update VERSION
if: ${{ steps.release_please.outputs.release_created }}
id: update_version
shell: sh
run: cd internal/app && printf %s $(git tag | tail -1) > VERSION
- uses: goreleaser/goreleaser-action@v4
if: ${{ steps.release_please.outputs.release_created }}
name: Run Go Releaser
id: run_goreleaser
with:
distribution: goreleaser
version: latest
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}