fix: ci issues #4
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |