Don't ask for permissions using new API on startup #1892
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: Build | |
| on: | |
| workflow_dispatch: | |
| inputs: | |
| logLevel: | |
| description: 'Log level' | |
| required: true | |
| default: 'warning' | |
| push: | |
| branches: | |
| - master | |
| - main | |
| - dev | |
| - preview | |
| - v* | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| env: | |
| NugetApiKey: ${{secrets.NUGETAPIKEY}} | |
| TwitterConsumerKey: ${{secrets.TWITTER_CONSUMER_KEY}} | |
| TwitterConsumerSecret: ${{secrets.TWITTER_CONSUMER_SECRET}} | |
| TwitterAccessToken: ${{secrets.TWITTER_ACCESS_TOKEN}} | |
| TwitterAccessTokenSecret: ${{secrets.TWITTER_ACCESS_TOKEN_SECRET}} | |
| DiscordToken: ${{secrets.DISCORD_TOKEN}} | |
| DiscordGuildId: '679761126598115336' | |
| DiscordChannelId: '803717285986566174' | |
| MastodonClientId: ${{secrets.MASTODON_CLIENT_ID}} | |
| MastodonClientSecret: ${{secrets.MASTODON_CLIENT_SECRET}} | |
| MastodonInstance: 'dotnet.social' | |
| jobs: | |
| build: | |
| runs-on: windows-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v3 | |
| with: | |
| fetch-depth: 0 | |
| # - name: Setup .NET 9.0 | |
| # uses: actions/setup-dotnet@v3 | |
| # with: | |
| # dotnet-version: '9.0.200' | |
| - uses: AdoptOpenJDK/install-jdk@v1 | |
| with: | |
| version: '13' | |
| architecture: x64 | |
| # - name: Add .NET Workloads | |
| # run: dotnet workload install maui-ios maui-android maui-maccatalyst maui-windows | |
| - name: Build | |
| run: dotnet build Build.slnf /restore -m -property:Configuration=Release -property:PublicRelease=true | |
| - name: Publish Artifacts | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: nugets | |
| path: ${{ github.workspace }}/artifacts | |
| retention-days: 5 | |
| - name: Publish NuGets | |
| if: ${{ github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/heads/v') }} | |
| run: dotnet nuget push **\*.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGETAPIKEY }} --skip-duplicate |