-
-
Notifications
You must be signed in to change notification settings - Fork 468
42 lines (39 loc) · 952 Bytes
/
release.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
name: release
on:
workflow_dispatch:
push:
tags:
- 'v*'
permissions:
contents: write
jobs:
homebrew:
runs-on: ubuntu-20.04
steps:
- name: Bump Homebrew formula
uses: dawidd6/action-homebrew-bump-formula@v3
with:
token: ${{ secrets.RELEASE_TOKEN }}
formula: telegram-downloader
goreleaser:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Fetch all tags
run: git fetch --force --tags
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 1.19
cache: true
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v5
with:
distribution: goreleaser
version: v1.18.2
args: release --rm-dist --timeout 1h -p 1
env:
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }}