-
Notifications
You must be signed in to change notification settings - Fork 12
58 lines (52 loc) · 1.34 KB
/
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
46
47
48
49
50
51
52
53
54
55
56
57
58
# Sync changes to translations
name: Package release
on: # yamllint disable-line rule:truthy
# push:
# tags:
# - "**"
workflow_dispatch:
inputs:
tag:
description: Tag to create
required: true
type: string
draft:
description: Create / update as draft
default: true
required: true
type: boolean
# Workflow jobs
jobs:
# One job
release:
name: "Release"
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Required for release
permissions:
contents: write
steps:
- uses: actions/checkout@master
- name: Compress action step
uses: a7ul/[email protected]
id: compress
with:
command: c
files: |
./docker
outPath: docker.wbm.gz
# Manual release
# https://github.com/marketplace/actions/create-release
- name: "Upload release"
uses: ncipollo/release-action@v1
with:
artifacts: "docker.wbm.gz"
tag: ${{ inputs.tag }} #${{ github.ref_name }}
commit: main
prerelease: true
draft: ${{ inputs.draft }}
generateReleaseNotes: true
allowUpdates: true
replacesArtifacts: true
omitPrereleaseDuringUpdate: true
omitNameDuringUpdate: true