Skip to content

fix: ci issues

fix: ci issues #4

Workflow file for this run

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#refs/tags/v}"
- 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 }}