#147 fix more issues with pipeline #6
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: "2. Continuous Deployment (Release Preview)" | |
| on: | |
| push: | |
| tags: | |
| - "v[0-9]+\\.[0-9]+\\.[0-9]+-preview[0-9]+\\.[0-9]+" | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 15 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: 8.0.x | |
| - name: Set VERSION variable from tag | |
| run: echo "VERSION=${GITHUB_REF/refs\/tags\/v/}" >> $GITHUB_ENV | |
| - name: Pack | |
| run: dotnet pack --configuration Release /p:Version=${VERSION} --output . | |
| - name: Push | |
| run: dotnet nuget push CryptoNet.${VERSION}.nupkg --source https://api.nuget.org/v3/index.json --api-key ${NUGET_TOKEN} | |
| env: | |
| NUGET_TOKEN: ${{ secrets.NUGET_TOKEN }} |