mirror of
https://github.com/stakater/Reloader.git
synced 2026-03-01 00:40:18 +00:00
The following CVEs should be fix by upgrading go version: * CVE-2022-23806 * CVE-2022-23772 * CVE-2021-44717 * CVE-2022-23773 * CVE-2021-44716 * CVE-2021-41771 * CVE-2021-41772
44 lines
1.0 KiB
YAML
44 lines
1.0 KiB
YAML
name: Release Go project
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- "v*"
|
|
|
|
env:
|
|
GOLANG_VERSION: 1.17.7
|
|
|
|
jobs:
|
|
build:
|
|
name: GoReleaser build
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Check out code
|
|
uses: actions/checkout@v2
|
|
with:
|
|
fetch-depth: 0 # See: https://goreleaser.com/ci/actions/
|
|
|
|
- name: Set up Go 1.x
|
|
uses: actions/setup-go@v2
|
|
with:
|
|
go-version: ${{ env.GOLANG_VERSION }}
|
|
id: go
|
|
|
|
- name: Run GoReleaser
|
|
uses: goreleaser/goreleaser-action@master
|
|
with:
|
|
version: latest
|
|
args: release --rm-dist
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.STAKATER_GITHUB_TOKEN }}
|
|
|
|
- name: Notify Slack
|
|
uses: 8398a7/action-slack@v3
|
|
if: always()
|
|
with:
|
|
status: ${{ job.status }}
|
|
fields: repo,author,action,eventName,ref,workflow
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.STAKATER_GITHUB_TOKEN }}
|
|
SLACK_WEBHOOK_URL: ${{ secrets.STAKATER_DELIVERY_SLACK_WEBHOOK }} |