diff --git a/.github/actions/go-release/action.yml b/.github/actions/publish-go/action.yml similarity index 98% rename from .github/actions/go-release/action.yml rename to .github/actions/publish-go/action.yml index 2e8b0ce..7ca4df4 100644 --- a/.github/actions/go-release/action.yml +++ b/.github/actions/publish-go/action.yml @@ -1,4 +1,4 @@ -name: 'release go code' +name: 'publish go' description: 'Pushes go code to the sdk repo' inputs: repository-token: diff --git a/.github/actions/node-release/action.yml b/.github/actions/publish-node/action.yml similarity index 97% rename from .github/actions/node-release/action.yml rename to .github/actions/publish-node/action.yml index e61909f..a9c0a41 100644 --- a/.github/actions/node-release/action.yml +++ b/.github/actions/publish-node/action.yml @@ -1,4 +1,4 @@ -name: 'release npm package' +name: 'publish node' description: 'Transpiles and publishes the Node package from the codegen artifact' inputs: registry-token: diff --git a/.github/actions/rust-release/action.yml b/.github/actions/publish-rust/action.yml similarity index 96% rename from .github/actions/rust-release/action.yml rename to .github/actions/publish-rust/action.yml index 3b551ab..6e869b2 100644 --- a/.github/actions/rust-release/action.yml +++ b/.github/actions/publish-rust/action.yml @@ -1,4 +1,4 @@ -name: 'release rust crate' +name: 'publish rust' description: 'Builds the Rust crate from the codegen artifact' inputs: registry-token: diff --git a/.github/workflows/publish.yml b/.github/workflows/publish-all.yml similarity index 83% rename from .github/workflows/publish.yml rename to .github/workflows/publish-all.yml index 4c18429..87b4f79 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish-all.yml @@ -1,4 +1,4 @@ -name: "publish packages" +name: "[internal] publish all packages" on: workflow_call: @@ -9,7 +9,7 @@ on: required: true jobs: - rust-release: + publish-rust: runs-on: ubuntu-latest steps: @@ -21,12 +21,12 @@ jobs: name: codegen path: ./codegen - - uses: ./.github/actions/rust-release + - uses: ./.github/actions/publish-rust with: registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }} mode: ${{ inputs.mode }} - node-release: + publish-node: runs-on: ubuntu-latest steps: @@ -38,12 +38,12 @@ jobs: name: codegen path: ./codegen - - uses: ./.github/actions/node-release + - uses: ./.github/actions/publish-node with: registry-token: ${{ secrets.NPM_REGISTRY_TOKEN }} mode: ${{ inputs.mode }} - go-release: + publish-go: runs-on: ubuntu-latest steps: @@ -55,7 +55,7 @@ jobs: name: codegen path: ./codegen - - uses: ./.github/actions/go-release + - uses: ./.github/actions/publish-go with: repository-token: ${{ secrets.GOSDK_REPOSITORY_TOKEN }} mode: ${{ inputs.mode }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1dc0201..a32d668 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -11,14 +11,14 @@ jobs: publish-dry-run: needs: [generate] - uses: ./.github/workflows/publish.yml + uses: ./.github/workflows/publish-all.yml secrets: inherit with: mode: "dry-run" publish: needs: [publish-dry-run] - uses: ./.github/workflows/publish.yml + uses: ./.github/workflows/publish-all.yml secrets: inherit with: mode: "release"