1. Update CI. Change to bash interpretator and run command in ci #7
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: pack | |
on: | |
push: | |
branches: [ workflow_build ] | |
pull_request: | |
branches: [ workflow_build ] | |
permissions: | |
contents: read | |
jobs: | |
pack: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: | | |
9.0.x | |
8.0.x | |
6.0.x | |
- name: Make the script files executable | |
run: chmod +x pack.sh | |
- name: Generate NuGet package | |
run: bash pack.sh | |
- name: Publish package in GitHub | |
run: dotnet nuget push ./artifacts/packages/Release/GitHub/*.nupkg --api-key ${{ secrets.PUSH_GITHUB }} --source https://nuget.pkg.github.com/t1moH1ch/index.json | |
create-release: | |
name: Create Release | |
runs-on: ubuntu-latest | |
needs: [ pack ] | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Create Release | |
id: create_release | |
uses: actions/create-release@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.PUSH_NUGET }} | |
with: | |
tag_name: 7.0.0-preview | |
release_name: PreRelease 7.0.0-preview | |
body: | | |
Changes in this Release you can see https://github.com/t1moH1ch/openiddict-core/commits/dev/ | |
draft: false | |
prerelease: true |