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 12:48:16 +00:00
|
|
|
release-packages:
|
|
|
|
environment:
|
|
|
|
name: artifactory
|
|
|
|
url: https://gitsecret.jfrog.io/artifactory
|
2021-05-06 10:16:48 +00:00
|
|
|
|
2021-05-06 12:48:16 +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
|
|
|
|
env:
|
|
|
|
SECRETS_ARTIFACTORY_CREDENTIALS: ${{ secrets.SECRETS_ARTIFACTORY_CREDENTIALS }}
|
2021-05-06 11:51:06 +00:00
|
|
|
|
|
|
|
github-release:
|
|
|
|
runs-on: ubuntu-latest
|
2021-05-06 12:48:16 +00:00
|
|
|
needs: ['release-packages']
|
2021-05-06 11:51:06 +00:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
2021-05-06 11:57:39 +00:00
|
|
|
- run: make changelog
|
2021-05-06 11:51:06 +00:00
|
|
|
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 }}
|