|  | 
| 6 | 6 |     branches:  | 
| 7 | 7 |       - dev | 
| 8 | 8 |       - future | 
|  | 9 | +      - pre-release | 
| 9 | 10 |     tags: | 
| 10 | 11 |       - v[0-9]+.[0-9]+.[0-9]+ # Matches all semantic versioning tags with major, minor, patch | 
| 11 | 12 |   pull_request: | 
| 12 | 13 |     branches:  | 
| 13 | 14 |       - dev | 
| 14 | 15 |       - future | 
|  | 16 | +      - pre-release | 
| 15 | 17 | 
 | 
| 16 | 18 | env: | 
| 17 | 19 |   dotnet_sdk_version: '8.0.100' | 
| @@ -74,25 +76,30 @@ jobs: | 
| 74 | 76 |       AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | 
| 75 | 77 |       AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | 
| 76 | 78 | 
 | 
| 77 |  | -  # currently not working | 
| 78 |  | -  # Documentation: | 
| 79 |  | -  #   needs: [EnvVar, UnitTests] | 
| 80 |  | -  #   uses: phoenixcontact/tools/.github/workflows/documentation-tool.yml@main | 
| 81 |  | -  #   with: | 
| 82 |  | -  #     REPOSITORY_NAME: ${{ needs.EnvVar.outputs.REPOSITORY_NAME }} | 
| 83 |  | - | 
| 84 | 79 |   Publish: | 
| 85 |  | -    needs: [EnvVar, UnitTests] | 
| 86 |  | -    uses: phoenixcontact/tools/.github/workflows/publish-tool.yml@main | 
| 87 |  | -    with: | 
| 88 |  | -      dotnet_sdk_version: ${{ needs.EnvVar.outputs.dotnet_sdk_version }} | 
| 89 |  | -      REPOSITORY_NAME: ${{ needs.EnvVar.outputs.REPOSITORY_NAME }} | 
| 90 |  | -      MORYX_PACKAGE_TARGET_DEV: ${{ needs.EnvVar.outputs.MORYX_PACKAGE_TARGET_DEV }} | 
| 91 |  | -      MORYX_PACKAGE_TARGET_V3_DEV: ${{ needs.EnvVar.outputs.MORYX_PACKAGE_TARGET_V3_DEV }} | 
| 92 |  | -      MORYX_PACKAGE_TARGET_FUTURE: ${{ needs.EnvVar.outputs.MORYX_PACKAGE_TARGET_FUTURE }} | 
| 93 |  | -      MORYX_PACKAGE_TARGET_V3_FUTURE: ${{ needs.EnvVar.outputs.MORYX_PACKAGE_TARGET_V3_FUTURE }} | 
| 94 |  | -      MORYX_PACKAGE_TARGET_RELEASE: ${{ needs.EnvVar.outputs.MORYX_PACKAGE_TARGET_RELEASE }} | 
| 95 |  | -      MORYX_PACKAGE_TARGET_V3_RELEASE: ${{ needs.EnvVar.outputs.MORYX_PACKAGE_TARGET_V3_RELEASE }} | 
| 96 |  | -    secrets:  | 
| 97 |  | -      MYGET_TOKEN: ${{secrets.MYGET_TOKEN}} | 
| 98 |  | -      NUGET_TOKEN: ${{secrets.NUGET_TOKEN}} | 
|  | 80 | +      if: ${{ github.ref == 'refs/heads/pre-release' }} | 
|  | 81 | +      needs: [EnvVar, UnitTests] | 
|  | 82 | +      runs-on: ubuntu-latest | 
|  | 83 | +      env: | 
|  | 84 | +        MORYX_NUGET_APIKEY: ${{ secrets.MYGET_TOKEN }} | 
|  | 85 | +        MORYX_PACKAGE_TARGET: ${{ needs.EnvVar.outputs.MORYX_PACKAGE_TARGET_DEV }} | 
|  | 86 | +        MORYX_PACKAGE_TARGET_V3: ${{ needs.EnvVar.outputs.MORYX_PACKAGE_TARGET_V3_DEV }} | 
|  | 87 | +      steps: | 
|  | 88 | +        - uses: actions/checkout@v2 | 
|  | 89 | + | 
|  | 90 | +        - name: Setup .NET SDK | 
|  | 91 | +          uses: actions/setup-dotnet@v1 | 
|  | 92 | +          with: | 
|  | 93 | +            dotnet-version: ${{ needs.EnvVar.outputs.dotnet_sdk_version }} | 
|  | 94 | + | 
|  | 95 | +        - name: Setup NuGet | 
|  | 96 | +          uses: NuGet/setup-nuget@v1 | 
|  | 97 | + | 
|  | 98 | +        - name: Download package artifacts | 
|  | 99 | +          uses: actions/download-artifact@v4 | 
|  | 100 | +          with: | 
|  | 101 | +            name: ${{ needs.EnvVar.outputs.REPOSITORY_NAME }}-packages | 
|  | 102 | +            path: artifacts/packages/ | 
|  | 103 | +             | 
|  | 104 | +        - name: Publish on MyGet-CI | 
|  | 105 | +          run: dotnet nuget push artifacts/packages/*.nupkg --api-key $MORYX_NUGET_APIKEY --source $MORYX_PACKAGE_TARGET --skip-duplicate --symbol-api-key $MORYX_NUGET_APIKEY --symbol-source $MORYX_PACKAGE_TARGET_V3 | 
0 commit comments