Files
Sharepoint-Toolbox/.gitea/workflows/release.yml
Kawa ae0106eff9
Some checks failed
Release zip package / release (push) Failing after 1s
Updated workflow
2026-03-10 14:27:51 +01:00

38 lines
1.1 KiB
YAML

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 }}