-
Notifications
You must be signed in to change notification settings - Fork 1
54 lines (52 loc) · 1.55 KB
/
deploy.yaml
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
52
53
54
name: Deploy and Release
on:
push:
tags:
- "v[0-9].[0-9].[0-9]*"
jobs:
release-build:
uses: ./.github/workflows/build.yaml
with:
store_artifacts: true
reportcard:
runs-on: ubuntu-latest
needs: release-build
steps:
- name: Trigger goreportcard scan
if: ${{ !env.ACT }}
run: |
curl -s -X POST -F "repo=github.com/$GITHUB_REPOSITORY" https://goreportcard.com/checks
release:
runs-on: ubuntu-latest
needs: release-build
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Download Build Files
uses: actions/download-artifact@v3
- name: Move files to root directory
run: |
mkdir -p release
find ./bridgr-* -type f | xargs -I {} cp -v {} release/
- name: Git Semantic Version
uses: PaulHatch/[email protected]
with:
major_pattern: "[MAJOR]"
minor_pattern: "[MINOR]"
version_format: "${major}.${minor}.${patch}-rc${increment}"
- name: Release Changelog Builder
id: changelog
uses: mikepenz/[email protected]
with:
ignorePreReleases: true
includeOpen: true
- name: print
run: echo "${{ steps.changelog.outputs.changelog }}"
- name: Create Release
uses: softprops/[email protected]
with:
files: release/*
prerelease: ${{ contains(github.ref, '-rc') }}
body: ${{ steps.changelog.outputs.changelog }}