wash v0.29.2 #124
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: Build and Release | |
on: | |
push: | |
branches: [main] | |
tags: | |
- "v*" | |
pull_request: | |
branches: [main] | |
jobs: | |
check: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Build | |
run: choco pack | |
- name: Make sure it will install | |
run: choco install wash -y -dv -s . | |
release: | |
needs: [check] | |
runs-on: windows-latest | |
if: startswith(github.ref, 'refs/tags/') | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Build | |
run: choco pack | |
- name: Get version | |
run: echo "version=$(echo -n \"$GITHUB_REF\" | sed 's%refs/tags/%%' | tr -d v)" >> $GITHUB_ENV | |
shell: bash | |
- name: Push | |
run: choco push wash.${{ env.version }}.nupkg -k ${{ secrets.apiKey }} -s https://push.chocolatey.org/ |