prepare v2.3.6 #36
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-release-stable | |
on: | |
push: | |
tags: | |
- 'v*' | |
jobs: | |
test_release: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
# Setting up required powershell modules | |
- name: Set required PowerShell modules | |
id: psmodulecache | |
uses: potatoqualitee/[email protected] | |
with: | |
#modules-to-cache: Pester, PSScriptAnalyzer , InvokeBuild | |
modules-to-cache: Pester, PSScriptAnalyzer | |
shell: pwsh | |
# Setting up the powershell module cache | |
- name: Setup PowerShell module cache | |
id: cacher | |
uses: actions/cache@v2 | |
with: | |
path: ${{ steps.psmodulecache.outputs.modulepath }} | |
key: ${{ steps.psmodulecache.outputs.keygen }} | |
# Installing the required powershell module, if not cached | |
- name: Install required PowerShell modules | |
if: steps.cacher.outputs.cache-hit != 'true' | |
uses: potatoqualitee/[email protected] | |
with: | |
shell: pwsh | |
- name: Invoke PSScriptAnalyzer & Pester Tests | |
shell: pwsh | |
#run: pwsh -command "Invoke-Build -File ./.build.ps1 -Configuration 'Test' -ciMode" | |
run: pwsh -command "./make.ps1 qa-tests-ci" | |
build_release: | |
runs-on: windows-latest | |
needs: test_release | |
steps: | |
- uses: actions/checkout@v2 | |
# # Setting up required powershell modules | |
# - name: Set required PowerShell modules | |
# id: psmodulecachebuild | |
# uses: potatoqualitee/[email protected] | |
# with: | |
# modules-to-cache: InvokeBuild, Ps2exe | |
# shell: powershell | |
# # Setting up the powershell module cache | |
# - name: Setup PowerShell module cache | |
# id: cacher | |
# uses: actions/cache@v2 | |
# with: | |
# path: ${{ steps.psmodulecachebuild.outputs.modulepath }} | |
# key: ${{ steps.psmodulecachebuild.outputs.keygen }} | |
# # Installing the required powershell module, if not cached | |
# - name: Install required PowerShell modules | |
# if: steps.cacher.outputs.cache-hit != 'true' | |
# uses: potatoqualitee/[email protected] | |
# with: | |
# shell: powershell | |
- name: Building Application | |
shell: powershell | |
#run: powershell -command "Invoke-Build -File ./.build.ps1 -Configuration 'Release' -ciMode" | |
run: powershell -command "./make.ps1 release-ci" | |
- uses: actions/upload-artifact@v4 | |
with: | |
path: | | |
build/dist/*.zip | |
retention-days: 1 | |
if-no-files-found: error | |
github-release: | |
runs-on: ubuntu-latest | |
needs: [ build_release ] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Extract version to create Release | |
run: echo "::set-output name=version::$( pwsh .\src\wslctl.ps1 --version )" | |
id: version | |
- uses: actions/download-artifact@v4 | |
- run: cd artifact && md5sum *wslctl* > md5sums.txt | |
- run: cd artifact && sha256sum *wslctl* > sha256sums.txt | |
- uses: marvinpinto/action-automatic-releases@latest | |
with: | |
repo_token: "${{ secrets.GITHUB_TOKEN }}" | |
automatic_release_tag: ${{ steps.version.outputs.version }} | |
prerelease: false | |
draft: false | |
body_path: CHANGELOG.md | |
files: | | |
artifact/* |