-
Notifications
You must be signed in to change notification settings - Fork 2
45 lines (35 loc) · 997 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: Release
on:
workflow_run:
workflows: ["Docker build and push"]
tags: [ 'v*.*.*' ]
types:
- completed
push:
tags: [ 'v*.*.*' ]
env:
IMAGE_NAME: ${{ github.repository }}
jobs:
build:
environment: deployment # this gets the secrets for deployments
runs-on: ubuntu-latest
permissions:
contents: write
packages: write
# This is used to complete the identity challenge
# with sigstore/fulcio when running outside of PRs.
id-token: write
steps:
- name: Checkout repository
uses: actions/checkout@v3
# ################################
# create release and push assets
# ################################
- name: Release to github with Notes
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
draft: false
generate_release_notes: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}