Merge pull request #639 from drualcman/ApexGaugeUpdate #8
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
| on: | |
| push: | |
| tags: | |
| - 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10 | |
| workflow_dispatch: | |
| inputs: | |
| version: | |
| description: Version | |
| required: true | |
| type: string | |
| deploy: | |
| description: Deploy | |
| required: true | |
| type: boolean | |
| default: false | |
| name: Create Release MAUI | |
| jobs: | |
| prepare: | |
| runs-on: ubuntu-latest | |
| outputs: | |
| Version: ${{ steps.set-values.outputs.Version }} | |
| Deploy: ${{ steps.set-values.outputs.Deploy }} | |
| defaults: | |
| run: | |
| shell: bash | |
| steps: | |
| - name: Update Environment Variables | |
| id: set-values | |
| run: | | |
| if [[ '${{ github.event_name }}' == 'workflow_dispatch' ]]; then | |
| echo "Version=${{ github.event.inputs.version }}" >> "$GITHUB_OUTPUT" | |
| echo "Deploy=${{ github.event.inputs.deploy }}" >> "$GITHUB_OUTPUT" | |
| else | |
| echo "Version=${GITHUB_REF##*/v}" >> "$GITHUB_OUTPUT" | |
| echo "Deploy=true" >> "$GITHUB_OUTPUT" | |
| fi | |
| build: | |
| needs: [ prepare ] | |
| name: Create Release | |
| runs-on: windows-2022 | |
| timeout-minutes: 15 | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v2 | |
| - name: Setup .NET Core | |
| uses: actions/setup-dotnet@v3 | |
| with: | |
| dotnet-version: | | |
| 8.0.x | |
| 9.0.x | |
| - name: Install dependencies | |
| run: | | |
| dotnet workload install maui | |
| dotnet restore | |
| - name: Dotnet Pack | |
| working-directory: ./src/Blazor-ApexCharts-MAUI | |
| run: dotnet pack -c Release -p:Version=${{ needs.prepare.outputs.Version }} -p:AssemblyVersion=${{ needs.prepare.outputs.Version }} | |
| - name: Dotnet Nuget Push | |
| if: ${{ needs.prepare.outputs.Deploy == 'true' }} | |
| working-directory: ./src/Blazor-ApexCharts-MAUI/bin/Release | |
| run: dotnet nuget push Blazor-ApexCharts-MAUI.*.nupkg -s https://api.nuget.org/v3/index.json -k ${{ secrets.NUGET_API_KEY }} |