generated from plus3it/repo-template
-
Notifications
You must be signed in to change notification settings - Fork 2
31 lines (29 loc) · 930 Bytes
/
release.yml
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
name: Create GitHub Release
on:
# Run on demand
workflow_dispatch:
# Run on push to main and when any of associated files are updated
push:
branches:
- main
paths:
- Dockerfile.tools
- '.github/workflows/dependabot_hack.yml'
- 'providers/versions.tf'
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
with:
fetch-depth: 0
- run: git fetch --tags --force origin # WA: https://github.com/actions/checkout/issues/882
- name: Create release
uses: softprops/action-gh-release@7b4da11513bf3f43f9999e90eabced41ab8bb048
with:
name: release/${{ github.sha }}
tag_name: release/${{ github.sha }}
generate_release_notes: true
target_commitish: ${{ github.sha }}
token: ${{ secrets.GH_RELEASES_TOKEN }}