Skip to content

Commit

Permalink
add publish job
Browse files Browse the repository at this point in the history
  • Loading branch information
daveboster committed Nov 24, 2023
1 parent 2ca7b79 commit 8448194
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion .github/workflows/tasks-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,10 @@ jobs:
include:
- os: ubuntu-latest
dotnet: '7.x'
publish: ${{ (github.event_name == 'push' && github.ref == 'ref/head/main') || (github.event_name == 'pull_request' && github.event.action != 'closed') }}
package: true # ${{ (github.event_name == 'pull_request' && github.event.action != 'closed') }}
outputs:
zip_package_artifact: ${{ steps.create-zip-package.outputs.package_filename }}
nuget_package_artifact: ${{ steps.create-nuget-package.outputs.package_filename }}

steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -133,5 +136,24 @@ jobs:
name: ${{ steps.create-nuget-package.outputs.package_filename }}
path: ${{ steps.create-nuget-package.outputs.package_file_path }}
retention-days: 1

publish:
# if: github.event_name == 'pull_request' && github.event.action == 'closed'
runs-on: ubuntu-latest
needs: build
name: Publish Packages
steps:
- name: Download zip package
uses: actions/download-artifact@v3
with:
name: ${{ needs.build.outputs.zip_package_artifact }}
path: './packaging'

- name: Download NuGet package
uses: actions/download-artifact@v3
with:
name: ${{ needs.build.outputs.zip_package_artifact }}
path: './packaging'

# tests_e2e:
# uses: ./.github/workflows/tests-e2e-playwright.yml

0 comments on commit 8448194

Please sign in to comment.