git-secret/.github/workflows/release.yml

41 lines
865 B
YAML
Raw Normal View History

2021-05-05 17:11:37 +00:00
name: release
on:
push:
tags:
2021-05-06 11:51:06 +00:00
- 'v*'
2021-05-05 17:11:37 +00:00
workflow_dispatch:
jobs:
2021-05-06 11:51:06 +00:00
release-packages:
2021-05-06 10:16:48 +00:00
environment:
name: artifactory
url: https://gitsecret.jfrog.io/artifactory
2021-05-05 17:11:37 +00:00
runs-on: ubuntu-latest
strategy:
matrix:
release-type:
- apk
- deb
- rpm
steps:
- uses: actions/checkout@v2
- name: Run checks
run: SECRETS_RELEASE_TYPE="${{ matrix.release-type }}" make release
2021-05-06 11:51:06 +00:00
github-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Generate changelog
run: make changelog
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: softprops/action-gh-release@v1
with:
# Generated above by `make changelog`:
body_path: CHANGELOG-RELEASE.md
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}