Skip to content

ib2 v2.11.2

ib2 v2.11.2 #38

Workflow file for this run

name: Publish ib2 Module
on:
push:
branches:
- master
paths:
- 'ib2/**'
jobs:
publish-to-gallery:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build and publish
env:
NUGET_KEY: ${{ secrets.PSGALLERY_NUGET_KEY }}
shell: pwsh
run: |
$moduleVersion=(import-powershellDataFile -Path ./ib2/ib2.psd1).ModuleVersion
$PSDefaultParameterValues['*:Encoding']='utf8BOM'
if ((Find-Module ib2).version -ne $moduleVersion) {
#Nouvelle version : lancer la publication
Publish-Module -Path ./ib2 -NuGetApiKey $env:NUGET_KEY -tag 'PSEdition_Desktop','PSEdition_Core','Windows' -iconUri 'https://raw.githubusercontent.com/renaudwangler/ib/refs/heads/master/extra/logo-ib.png' -Verbose
write-host "::notice title=Publication réussie::Publication de la version $moduleVersion vers la gallerie Powershell"}
else {write-host "::warning title=Version identique::La version n'a pas changé, pas de publication"}