fix: OnLocalTimeZoneChanged method (#5) #33
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: Release Package to GitHub | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - release/* | |
| paths: | |
| - '**.csproj' | |
| - '**.cs' | |
| - '**.razor' | |
| - '**.yaml' | |
| permissions: | |
| contents: write | |
| jobs: | |
| release-github: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: | | |
| 9.x | |
| 8.x | |
| 7.x | |
| 6.x | |
| cache: true | |
| cache-dependency-path: '**/packages.lock.json' | |
| - uses: dotnet/nbgv@master | |
| id: nbgv | |
| - name: Restore dependencies | |
| run: dotnet restore --locked-mode | |
| - name: Build | |
| run: dotnet build --no-restore -c Release | |
| - name: Generate Nuget Package | |
| run: dotnet pack --no-build -c Release --output ./artifacts | |
| - name: Create Release | |
| id: create_release | |
| uses: softprops/action-gh-release@v1 | |
| with: | |
| name: ${{ steps.nbgv.outputs.SemVer2 }} | |
| tag_name: ${{ steps.nbgv.outputs.SemVer2 }} | |
| target_commitish: ${{ github.ref }} | |
| generate_release_notes: true | |
| files: ./artifacts/*.nupkg | |
| # if hyphen contains in the tag name, it will be prerelease | |
| prerelease: ${{ contains(steps.nbgv.outputs.SemVer2, '-') }} | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |