-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (37 loc) · 1.17 KB
/
release.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
name: Release
on:
workflow_dispatch:
push:
branches:
- release
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Get version for next release
id: get-release-version
uses: ./.github/actions/local-action
with:
create-tag: "true"
git-username: "wemogy IT"
git-email: "[email protected]"
- name: Build Containers
uses: ./.github/actions/containers
with:
container-registry-server: "ghcr.io"
container-registry-username: ${{ github.actor }}
container-registry-password: ${{ secrets.GITHUB_TOKEN }}
version: ${{ steps.get-release-version.outputs.version }}
push: true
- name: Create GitHub Release
uses: softprops/action-gh-release@v1
if: steps.get-release-version.outputs.tag-created == 'true'
with:
tag_name: ${{ steps.get-release-version.outputs.version-name }}
name: Version ${{ steps.get-release-version.outputs.version }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}