Skip to content

(#32) Add a build pipeline #6

(#32) Add a build pipeline

(#32) Add a build pipeline #6

Workflow file for this run

name: Chocolatey-AU Builds
on:
# Trigger on pushes and on pull requests
push:
pull_request:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
# Build on Windows
windows-build:
runs-on: windows-2019
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Cache Tools
uses: actions/[email protected]
with:
path: tools
key: ${{ runner.os }}-tools-${{ hashFiles('recipe.cake') }}
- name: Build Chocolatey-AU module
run: .\build.ps1 -Task CI -Verbose -ErrorAction Stop
- name: Upload Windows build results
uses: actions/upload-artifact@v3
# Always upload build results
if: ${{ always() }}
with:
name: build-results
path: |
code_drop/Chocolatey-AU/**
code_drop/*.nupkg
code_drop/*.7z
code_drop/test.results.xml