Skip to content

Merge pull request #10 from stackql/feature/stackql-release-update #11

Merge pull request #10 from stackql/feature/stackql-release-update

Merge pull request #10 from stackql/feature/stackql-release-update #11

on:
push:
branches:
- main
jobs:
deploy:
runs-on: windows-latest
outputs:
version: ${{ steps.set_version.outputs.version }}
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Extract Version from .nuspec
id: set_version
run: |
$xml = [xml](Get-Content stackql/stackql.nuspec)
$version = $xml.package.metadata.version
echo "VERSION=$version" >> $GITHUB_ENV
- name: Create Chocolatey Package
run: |
cd stackql
choco pack
- name: Install and Test Chocolatey Package
run: choco install stackql --source . -y
- name: Push Package to Chocolatey
run: |
choco push stackql/stackql.$env:VERSION.nupkg --source https://push.chocolatey.org/ --api-key ${{ secrets.CHOCOLATEY_API_KEY }}
env:
CHOCOLATEY_API_KEY: ${{ secrets.CHOCOLATEY_API_KEY }}