-
-
Notifications
You must be signed in to change notification settings - Fork 3
36 lines (36 loc) · 1010 Bytes
/
publish.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
name: Release and publish tsshd
on:
release:
types: [released]
jobs:
release-and-publish:
name: Release and publish tsshd
runs-on: ubuntu-latest
steps:
- name: Checkout tsshd
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "1.21"
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v6
with:
distribution: goreleaser
version: "~> v1"
args: release --clean --skip=publish
- name: Upload Release Assets
uses: softprops/action-gh-release@v2
with:
files: |
dist/*.tar.gz
dist/*.zip
dist/*.rpm
dist/*_checksums.txt
- name: Publish rpm to Gemfury
env:
FURY_TOKEN: ${{ secrets.FURY_TOKEN }}
run: |
for filename in dist/tsshd*.rpm; do
curl -F package=@"$filename" https://{$FURY_TOKEN}@push.fury.io/trzsz/
done