-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (36 loc) · 1.06 KB
/
tenv.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: "[tenv] delivery / chocolatey"
on:
push:
tags:
- "*"
defaults:
run:
shell: bash
jobs:
cicd:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Get release version
id: get_version
run: echo "::set-output name=version::${GITHUB_REF_NAME}"
- name: Fill nuspec
run: |
file=tenv/tenv.nuspec
sed -i "s/PACK_VERSION/${{ steps.get_version.outputs.version }}/g" $file
cat $file
- name: build-release
uses: crazy-max/ghaction-chocolatey@v3
with:
args: pack tenv/tenv.nuspec --outputdirectory tenv
- name: Test Release
uses: crazy-max/ghaction-chocolatey@v3
with:
args: install tenv -s tenv
- name: Ensure tenv Installed
run: tenv --help
- name: Upload Release
uses: crazy-max/ghaction-chocolatey@v3
with:
args: push tenv/tenv.${{ steps.get_version.outputs.version }}.nupkg -s https://push.chocolatey.org/ -k ${{ secrets.API_KEY }}