generated from mrz1836/go-template
-
Notifications
You must be signed in to change notification settings - Fork 15
51 lines (44 loc) · 1.3 KB
/
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
43
44
45
46
47
48
49
50
51
name: Release
permissions:
contents: write
packages: write
env:
GO111MODULE: on
on:
push:
tags:
- 'v*'
jobs:
release_default:
uses: bactions/workflows/.github/workflows/release-go-server.yml@main
with:
version: ${{ github.ref_name }}
os: linux
cgo_enabled: true
release_binaries: false
secrets:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
release_libs:
runs-on: ubuntu-latest
needs: [release_default]
strategy:
matrix:
lib:
- models
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: 'Configure Git'
run: |
git config user.name "$GITHUB_ACTOR"
git config user.email "$GITHUB_ACTOR@users.noreply.github.com"
- name: Tag ${{ matrix.lib }}
run: |
git tag ${{ matrix.lib }}/${{ github.ref_name }} -am "${{ matrix.lib }}/${{ github.ref_name }}"
git push origin ${{ matrix.lib }}/${{ github.ref_name }}
- name: Syndicate to GoDocs
run: |
echo "syndicating to GoDocs..."
curl "https://proxy.golang.org/github.com/${{ github.repository }}/${{ matrix.lib }}/@v/${{ github.ref_name }}.info"