From afd2e7185f22e397fbd6ace86ca9ea5efd7a3c79 Mon Sep 17 00:00:00 2001 From: Florian Hopfner Date: Sat, 4 May 2024 13:41:28 +0200 Subject: [PATCH] remove obsolete reusable workflow --- .github/workflows/tmpl-build-release.yml | 75 ------------------------ 1 file changed, 75 deletions(-) delete mode 100644 .github/workflows/tmpl-build-release.yml diff --git a/.github/workflows/tmpl-build-release.yml b/.github/workflows/tmpl-build-release.yml deleted file mode 100644 index b939b948..00000000 --- a/.github/workflows/tmpl-build-release.yml +++ /dev/null @@ -1,75 +0,0 @@ -# Template for a reusable workflow to build and release a PowerShell module. -# The template expects the following PowerShell scripts in the build folder of the repository root -# that do the actual validated build and release: -# - vsts-prerequisities.ps1 -# - vsts-validate.ps1 -# - vsts-build.ps1 - -on: - workflow_call: - inputs: - module: - description: "The name of the module to build and release" - required: true - type: string - autoversion: - description: "Determines if the module's build version number is automatically incremented" - default: $True - required: false - type: string - skippublish: - description: "Determines if the publishing to the PowerShell Gallery is skipped" - default: $False - required: false - type: string - skipghrelease: - description: "Determines if a GitHub release is created" - default: false - required: false - type: boolean - skipValidation: - description: "Determines if the module validation is skipped" - default: false - required: false - type: boolean - secrets: - apikey: - description: "Key for the PowerShell Gallery API" - required: true - -jobs: - build-and-release: - - runs-on: windows-latest - - steps: - - uses: actions/checkout@v4 - - name: Install Prerequisites - run: .\build\vsts-prerequisites.ps1 - shell: powershell - - name: Validate - run: .\build\vsts-validate.ps1 - shell: powershell - if: ${{ success() && ! inputs.skipValidation }} - - name: Build - run: .\build\vsts-build.ps1 -ApiKey ${{ secrets.apikey }} -AutoVersion:${{ inputs.autoversion }} -SkipPublish:${{ inputs.skippublish }} - shell: powershell - - - name: Get version - run: | - $publishDir = Get-Item -Path publish - [version]$version = (Import-PowerShellDataFile -Path "$($publishDir.FullName)\${{ inputs.module }}\${{ inputs.module }}.psd1").ModuleVersion - $githubReleaseVersion = "$($version.Major).$($version.Minor).$($version.Build)" - "VERSION=$githubReleaseVersion" >> $env:GITHUB_ENV - shell: powershell - if: ${{ success() && ! inputs.skipghrelease }} - - - name: Create GitHub release - uses: softprops/action-gh-release@v2 - if: ${{ success() && ! inputs.skipghrelease }} - with: - name: ${{ env.VERSION }} - tag_name: ${{ env.VERSION }} - draft: false - prerelease: true - generate_release_notes: true \ No newline at end of file