-
Notifications
You must be signed in to change notification settings - Fork 2
57 lines (52 loc) · 1.93 KB
/
auto-release-on-master.yml
File metadata and controls
57 lines (52 loc) · 1.93 KB
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
55
56
57
name: auto-release
on:
workflow_dispatch: # to manually force a release on ignore paths
push:
branches:
- master
paths-ignore:
- '.github/**'
- .gitignore
- CONTRIBUTING.md
- README.md
- renovate.json5
- run-renovate-locally.bash
jobs:
build:
name: "ship it"
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
fetch-depth: 0
- name: Bump version
id: bump-version
uses: ietf-tools/semver-action@c90370b2958652d71c06a3484129a4d423a6d8a8 # v1.11.0
with:
token: ${{ github.token }}
branch: master
noVersionBumpBehavior: patch
majorList: major
- name: create bosh release
id: create-bosh-release
uses: orange-cloudfoundry/create-bosh-release-action@07aba58bcb0a08d45233c095b773e3777dd9bf4f # v1.2.3
with:
target_branch: ${{github.ref_name}}
tag_name: ${{ steps.bump-version.outputs.next}}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
AWS_BOSH_ACCES_KEY_ID: ${{ secrets.AWS_BOSH_ACCES_KEY_ID }}
AWS_BOSH_SECRET_ACCES_KEY: ${{ secrets.AWS_BOSH_SECRET_ACCES_KEY }}
# see https://github.com/ncipollo/release-action
- name: create github release
id: create-github-release
uses: ncipollo/release-action@b7eabc95ff50cbeeedec83973935c8f306dfcd0b # v1.20.0
with:
tag: ${{ steps.create-bosh-release.outputs.tagged_version }}
draft: false
allowUpdates: false # > indicates if we should update a release if it already exists.
generateReleaseNotes: true
artifacts: ./${{ steps.create-bosh-release.outputs.file }}
artifactContentType: application/zip
artifactErrorsFailBuild: true # > indicates if artifact read or upload errors should fail the build.