headless was incorrect #42
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: .NET | |
| on: | |
| push: | |
| tags: | |
| - '*' | |
| workflow_dispatch: | |
| inputs: | |
| version: | |
| description: 'Release version (e.g., 8.0.0)' | |
| required: true | |
| default: '8.0.0' | |
| type: string | |
| prerelease: | |
| description: 'Mark as pre-release' | |
| required: false | |
| default: false | |
| type: boolean | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 # Fetch full history for changelog generation | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: 8.0.x | |
| - name: Determine version | |
| id: version | |
| run: | | |
| if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then | |
| echo "VERSION=${{ github.event.inputs.version }}" >> $GITHUB_OUTPUT | |
| else | |
| echo "VERSION=${GITHUB_REF_NAME}" >> $GITHUB_OUTPUT | |
| fi | |
| - name: Publish Windows | |
| run: dotnet publish AzureDevOps.WikiPDFExport/azuredevops-export-wiki.csproj -r win-x64 -c Release -p:Version=${{ steps.version.outputs.VERSION }} --no-self-contained -o output/win-x64 | |
| - name: Publish Linux | |
| run: dotnet publish AzureDevOps.WikiPDFExport/azuredevops-export-wiki.csproj -r linux-x64 -c Release -p:Version=${{ steps.version.outputs.VERSION }} --no-self-contained -o output/linux-x64 | |
| - name: Publish MacOs | |
| run: dotnet publish AzureDevOps.WikiPDFExport/azuredevops-export-wiki.csproj -r osx-x64 -c Release -p:Version=${{ steps.version.outputs.VERSION }} --no-self-contained -o output/osx-x64 | |
| - name: Rename MacOs file | |
| run: mv output/osx-x64/azuredevops-export-wiki output/osx-x64/azuredevops-export-wiki-osx | |
| - name: Create Release | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| tag_name: ${{ steps.version.outputs.VERSION }} | |
| name: Release ${{ steps.version.outputs.VERSION }} | |
| draft: true | |
| prerelease: ${{ github.event.inputs.prerelease == 'true' }} | |
| files: | | |
| output/win-x64/azuredevops-export-wiki.exe | |
| output/win-x64/devopswikistyle.css | |
| output/win-x64/licenses.txt | |
| output/linux-x64/azuredevops-export-wiki | |
| output/osx-x64/azuredevops-export-wiki-osx |