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

ci: updated workflow #48

Merged
merged 6 commits into from
Mar 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/build_javascript.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,5 @@ jobs:
- name: Upload Generated Files
uses: actions/upload-artifact@v4
with:
name: javascript-files
name: typescript-schema
path: 'packages/javascript/src/lcax*'
11 changes: 5 additions & 6 deletions .github/workflows/cicd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ jobs:
- buildRust

createRelease:
if: github.event_name != 'pull_request'
uses: ./.github/workflows/create_release.yaml
needs:
- buildRust
Expand All @@ -52,33 +51,33 @@ jobs:
cargo_token: ${{ secrets.CARGO_TOKEN }}

releaseDocs:
if: github.event_name != 'pull_request'
needs:
- createRelease
uses: ./.github/workflows/release_docs.yaml

publishPython:
if: (github.event_name != 'pull_request') && ${{ needs.createRelease.outputs.version != '' }}
uses: ./.github/workflows/publish_python.yaml
needs:
- createRelease
secrets:
pypi_token: ${{ secrets.PYPI_TOKEN }}
with:
release_version: ${{ needs.createRelease.outputs.version }}

publishJavascript:
if: (github.event_name != 'pull_request') && ${{ needs.createRelease.outputs.version != '' }}
uses: ./.github/workflows/publish_javascript.yaml
needs:
- createRelease
secrets:
npm_token: ${{ secrets.NPM_TOKEN }}
with:
release_version: ${{ needs.createRelease.outputs.version }}

publishCSharp:
if: (github.event_name != 'pull_request') && ${{ needs.createRelease.outputs.version != '' }}
uses: ./.github/workflows/publish_csharp.yaml
needs:
- createRelease
with:
version: ${{ needs.createRelease.outputs.version }}
release_version: ${{ needs.createRelease.outputs.version }}
secrets:
nuget_token: ${{ secrets.NUGET_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/create_release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ jobs:

- name: Upload Cargo
if: steps.nextVersion.outputs.version != ''
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: cargo
path: 'Cargo*'
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/publish_csharp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ name: Publish NuGet Package
on:
workflow_call:
inputs:
version:
release_version:
type: string
default: ""
required: true
secrets:
nuget_token:
Expand All @@ -14,6 +15,7 @@ on:
jobs:
publishCSharp:
runs-on: ubuntu-latest
if: ${{ inputs.release_version != ''}}
steps:
- uses: actions/checkout@v4

Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/publish_javascript.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ name: Publish NPM Package

on:
workflow_call:
inputs:
release_version:
type: string
default: ""
required: true
secrets:
npm_token:
required: true
Expand All @@ -12,6 +17,7 @@ env:

jobs:
publishJavaScript:
if: ${{ inputs.release_version != ''}}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/publish_python.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,15 @@ on:
secrets:
pypi_token:
required: true
inputs:
release_version:
required: false
type: string
default: ""

jobs:
publishPython:
if: ${{ inputs.release_version != ''}}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/release_docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ on:
jobs:
buildDocs:
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- uses: actions/checkout@v4

Expand Down
Loading