Skip to content

Merge pull request #1 from RolfMoleman/Feature/auto-maintain #2

Merge pull request #1 from RolfMoleman/Feature/auto-maintain

Merge pull request #1 from RolfMoleman/Feature/auto-maintain #2

Workflow file for this run

name: Publish
on:
push:
branches:
- develop
paths-ignore:
- .github/**
workflow_dispatch:
jobs:
build-terraform:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Choco pack
uses: crazy-max/[email protected]
with:
args: pack .\terraform\terraform.nuspec
- name: Choco install
uses: crazy-max/[email protected]
with:
args: install -source . -force terraform
- name: Terraform Version
run: terraform -version
- name: Save Choco package
uses: actions/upload-artifact@v3
with:
name: terraform
path: "${{ github.workspace }}/*.nupkg"
publish-terraform:
runs-on: windows-latest
needs: build-terraform
steps:
- uses: actions/checkout@v4
- name: Restore Choco package
uses: actions/download-artifact@v3
with:
name: terraform
path: ${{ github.workspace }}
- name: Choco install
uses: crazy-max/[email protected]
with:
args: install -source . -force terraform
- name: Terraform Version
run: terraform -version
- name: Add Choco API Key
uses: crazy-max/[email protected]
with:
args: apikey --key ${{secrets.CHOCO_API_KEY}} --source https://push.chocolatey.org/
- name: Publish (noop)
uses: crazy-max/[email protected]
with:
args: push --source https://push.chocolatey.org/