Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OPL-12294: Preparing for package release. #9

Prev Previous commit
Next Next commit
BE-14954: Refactor existing workflows to one file.
jakubsemerak committed Mar 6, 2024
commit bd179df6ec456087335176dd377c0da573a21eb0
14 changes: 9 additions & 5 deletions .github/workflows/publish.yml → .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
@@ -24,7 +24,7 @@ defaults:
shell: pwsh

jobs:
create_nuget:
create-nuget:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
@@ -46,9 +46,9 @@ jobs:
retention-days: 7
path: ${{ env.NuGetDirectory }}/*.nupkg

validate_nuget:
validate-nuget:
runs-on: ubuntu-latest
needs: [ create_nuget ]
needs: [ create-nuget ]
steps:
# Install the .NET SDK indicated in the global.json file
- name: Setup .NET
@@ -74,15 +74,19 @@ jobs:
uses: ./.github/workflows/dotnet-tests.yml
with:
working-directory: "dotnet/UneceGenerator"
configuration: "Release"

python-tests:
uses: ./.github/workflows/python-tests.yml
with:
working-directory: "python"

deploy:
# Publish only when creating a GitHub Release
# https://docs.github.com/en/repositories/releasing-projects-on-github/managing-releases-in-a-repository
# You can update this logic if you want to manage releases differently
if: github.event_name == 'release'
runs-on: ubuntu-latest
needs: [ validate_nuget, dotnet-tests ]
needs: [ validate-nuget, dotnet-tests, python-tests ]
steps:
# Download the NuGet package created in the previous job
- uses: actions/download-artifact@v3
2 changes: 1 addition & 1 deletion .github/workflows/dotnet-tests.yml
Original file line number Diff line number Diff line change
@@ -10,7 +10,7 @@ on:

configuration:
required: false
default: "Debug"
default: "Release"
type: string


15 changes: 0 additions & 15 deletions .github/workflows/pull.yml

This file was deleted.

17 changes: 0 additions & 17 deletions .github/workflows/push.yml

This file was deleted.