Repository navigation
65 lines (57 loc) · 1.93 KB
/
Copy pathrelease-workload.yml
File metadata and controls
65 lines (57 loc) · 1.93 KB
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
59
60
61
62
63
64
65
name: Release Workload
on:
workflow_dispatch:
inputs:
prerelease:
description: 'Pre-release tag name'
required: true
isStableRelease:
description: 'Stable release?'
required: false
type: boolean
default: false
permissions:
contents: read
packages: read
jobs:
release:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Authenticate GitHub Packages NuGet source
run: |
dotnet nuget update source github \
--username github-actions \
--password ${{ secrets.GITHUB_TOKEN }} \
--store-password-in-clear-text \
--configfile workload/NuGet.config
- name: Bump TizenWorkloadVersion (global sequential, NuGet-derived)
working-directory: ./workload
run: |
set -e
OLD=$(grep -oP '(?<=<TizenWorkloadVersion>)[^<]+(?=</TizenWorkloadVersion>)' build/Versions.props)
NEW=$(python3 scripts/next-workload-version.py)
echo "Current: $OLD"
echo "Next: $NEW"
if [ "$OLD" = "$NEW" ]; then
echo "ERROR: computed next == current. NuGet already has this version published."
exit 1
fi
python3 scripts/next-workload-version.py --apply --verbose
echo "::notice ::Bumped TizenWorkloadVersion: $OLD -> $NEW"
- name: Install Wix toolset
run: sudo apt-get install -y wixl
- name: Build
env:
PRERELEASE_TAG: ${{ github.event.inputs.prerelease }}
IS_STABLE_RELEASE_TAG: ${{ fromJson(github.event.inputs.isStableRelease) }}
run: make install -d
working-directory: ./workload
- name: Push packages to NuGet.org
run: |
dotnet nuget push ./workload/out/nuget-unsigned/Samsung.*.nupkg \
-k ${{ secrets.NUGET_APIKEY }} \
-s https://api.nuget.org/v3/index.json \
-t 3000