name: Release zip package on: push: tags: - 'v*' jobs: release: runs-on: native steps: - name: Checkout uses: actions/checkout@v4 - name: Build zip shell: pwsh run: | $version = $env:GITHUB_REF_NAME $zip = "SharePoint_ToolBox_${version}.zip" Compress-Archive -Force -Path Sharepoint_ToolBox.ps1, lang -DestinationPath $zip "ZIP=$zip" >> $env:GITHUB_ENV "VERSION=$version" >> $env:GITHUB_ENV - name: Create release and upload asset uses: https://gitea.com/actions/gitea-release-action@latest with: token: ${{ secrets.RELEASE_TOKEN }} tag_name: ${{ env.VERSION }} release_name: "SharePoint ToolBox ${{ env.VERSION }}" body: | ## SharePoint ToolBox ${{ env.VERSION }} ### Installation 1. Télécharger et extraire le zip 2. Lancer `Sharepoint_ToolBox.ps1` avec PowerShell 3. Prérequis : module `PnP.PowerShell` (`Install-Module PnP.PowerShell`) files: ${{ env.ZIP }}