-
Notifications
You must be signed in to change notification settings - Fork 1
45 lines (40 loc) · 1.58 KB
/
release-packages.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-packages
on:
pull_request:
branches: [ main ]
types: [ closed ]
jobs:
generate-version:
if: ${{ (github.event.pull_request.merged == true) && ((contains(github.event.pull_request.labels.*.name, 'prerelease')) || (contains(github.event.pull_request.labels.*.name, 'release'))) }}
uses: ./.github/workflows/reuse-generate-version-and-init-release.yml
with:
prerelease: ${{(contains(github.event.pull_request.labels.*.name, 'release')) == false}}
secrets: inherit
remove-prefix-from-version:
needs: generate-version
runs-on: ubuntu-latest
outputs:
version: ${{ steps.remove-prefix.outputs.version }}
steps:
- name: check-version
run: |
echo version: ${{ needs.generate-version.outputs.version }}
- name: remove-prefix
id: remove-prefix
run: |
TAG=${{ needs.generate-version.outputs.version }}
echo ::set-output name=version::${TAG#v}
publish-formats-package:
needs: [ generate-version, remove-prefix-from-version ]
uses: ./.github/workflows/reuse-publish-nuget-package.yml
with:
project_name: "Ashampoo.Translation.Systems.Formats"
version: ${{ needs.remove-prefix-from-version.outputs.version }}
secrets: inherit
publish-abstractions-package:
needs: [ generate-version, remove-prefix-from-version ]
uses: ./.github/workflows/reuse-publish-nuget-package.yml
with:
project_name: "Ashampoo.Translation.Systems.Formats.Abstractions"
version: ${{ needs.remove-prefix-from-version.outputs.version }}
secrets: inherit