48 lines (41 loc) · 1.24 KB
/
multiwerf_release_publisher.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
name: Multiwerf Release Publisher
on:
create:
env:
GO111MODULE: on
jobs:
publish_release:
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
name: Publish werf release
runs-on: [self-hosted, linux, builder]
steps:
- name: Set up Go 1.17
uses: actions/setup-go@v2
with:
go-version: 1.17
id: go
- name: Checkout code
uses: actions/checkout@v3
- name: Publish release
run: |
./scripts/publish_release.sh ${GITHUB_REF#refs/tags/}
shell: bash
env:
S3_REGION: ${{ secrets.S3_REGION }}
S3_ENDPOINT: ${{ secrets.S3_ENDPOINT }}
S3_ACCESS_KEY_ID: ${{ secrets.S3_ACCESS_KEY_ID }}
S3_SECRET_ACCESS_KEY: ${{ secrets.S3_SECRET_ACCESS_KEY }}
S3_BUCKET_NAME: ${{ secrets.S3_BUCKET_NAME }}
notification:
name: Notification
if: ${{ startsWith(github.ref, 'refs/tags/v') && always() }}
needs: publish_release
runs-on: ubuntu-latest
steps:
- uses: technote-space/workflow-conclusion-action@v2
- name: Notify
uses: rtCamp/action-slack-notify@v2
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
SLACK_COLOR: ${{ env.WORKFLOW_CONCLUSION }}
MSG_MINIMAL: "ref,actions url"