-
Notifications
You must be signed in to change notification settings - Fork 3
30 lines (28 loc) · 821 Bytes
/
release.yml
File metadata and controls
30 lines (28 loc) · 821 Bytes
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
name: Releases
on:
push:
tags:
- 'v*.*.*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- id: imagetag
run: |
echo "DOCKER_IMAGE_TAG=$(echo ${{github.ref_name}} | cut -dv -f2)" >> $GITHUB_ENV
- name: Create Release
id: create_release
if: github.event_name != 'pull_request'
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref_name }}
release_name: ${{ github.ref_name }}
draft: false
prerelease: false
body: |
Docker images:
- ${{ github.repository }}:${{ env.DOCKER_IMAGE_TAG }}
- ghcr.io/${{ github.repository }}:${{ env.DOCKER_IMAGE_TAG }}