This commit is contained in:
@@ -7,20 +7,19 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
release:
|
release:
|
||||||
runs-on: ubuntu-latest
|
runs-on: native
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Build zip
|
- name: Build zip
|
||||||
|
shell: pwsh
|
||||||
run: |
|
run: |
|
||||||
VERSION="${GITHUB_REF_NAME}"
|
$version = $env:GITHUB_REF_NAME
|
||||||
ZIP="SharePoint_ToolBox_${VERSION}.zip"
|
$zip = "SharePoint_ToolBox_${version}.zip"
|
||||||
zip -r "$ZIP" \
|
Compress-Archive -Force -Path Sharepoint_ToolBox.ps1, lang -DestinationPath $zip
|
||||||
Sharepoint_ToolBox.ps1 \
|
"ZIP=$zip" >> $env:GITHUB_ENV
|
||||||
lang/ \
|
"VERSION=$version" >> $env:GITHUB_ENV
|
||||||
echo "ZIP=$ZIP" >> "$GITHUB_ENV"
|
|
||||||
echo "VERSION=$VERSION" >> "$GITHUB_ENV"
|
|
||||||
|
|
||||||
- name: Create release and upload asset
|
- name: Create release and upload asset
|
||||||
uses: https://gitea.com/actions/gitea-release-action@latest
|
uses: https://gitea.com/actions/gitea-release-action@latest
|
||||||
|
|||||||
Reference in New Issue
Block a user