This is an automated email from the ASF dual-hosted git repository.
rantunes pushed a commit to branch main
in repository
https://gitbox.apache.org/repos/asf/incubator-kie-tools-temporary-rnd-do-not-use.git
The following commit(s) were added to refs/heads/main by this push:
new 353dbb3960 CI - Disable workflows migrated to Jenkins (#20)
353dbb3960 is described below
commit 353dbb39608f1a8f944f3d65dcb3b3253ab4f916
Author: Rodrigo Antunes <[email protected]>
AuthorDate: Thu Nov 23 11:06:48 2023 -0300
CI - Disable workflows migrated to Jenkins (#20)
* CI - Disable workflows migrated to Jenkins
* Update CI Build workflow name
* Remove disallowed actions
---
.github/actions/checkout-pr/action.yml | 2 +-
.github/actions/setup-env/action.yml | 22 +-----
.github/workflows/ci_build.yml | 8 +-
.github/workflows/ci_check_code_formatting.yml | 9 ++-
.../ci_check_dependencies_consistency.yaml | 9 ++-
.github/workflows/ci_codeql.yml | 10 +--
.../ci_sonar_analysis_stunner_editors.yml | 13 ++--
.github/workflows/daily_dev_publish.yml | 10 +--
.github/workflows/jenkins-tests-PR.yml | 13 ++--
.github/workflows/publish_jitexecutor_native.yml | 6 +-
.../workflows/release_build_extended_services.yml | 87 +++++++++++++++++++++
.github/workflows/release_dry_run.yml | 14 ++--
...n.yml => release_dry_run_extended_services.yml} | 10 +--
.../release_publish_extended_services.yml | 47 ++++++++++++
.../workflows/staging_build_extended_services.yml | 89 ++++++++++++++++++++++
.github/workflows/staging_dry_run.yml | 14 ++--
...n.yml => staging_dry_run_extended_services.yml} | 4 +-
.github/workflows/staging_publish.yml | 5 +-
.../staging_publish_extended_services.yml | 51 +++++++++++++
19 files changed, 341 insertions(+), 82 deletions(-)
diff --git a/.github/actions/checkout-pr/action.yml
b/.github/actions/checkout-pr/action.yml
index ae9136c5e4..5bda551c14 100644
--- a/.github/actions/checkout-pr/action.yml
+++ b/.github/actions/checkout-pr/action.yml
@@ -45,7 +45,7 @@ runs:
user=$(node -e "console.log('${{
github.event.pull_request.head.label }}'.match(/(.+)\:(.+)$/)[1])")
echo "Merge changes from $user/${{ github.head_ref }}"
- git remote add $user https://github.com/$user/kie-tools.git
+ git remote add $user
https://github.com/$user/incubator-kie-tools-temporary-rnd-do-not-use.git
git fetch $user ${{ github.head_ref }}
echo "Before merging..."
diff --git a/.github/actions/setup-env/action.yml
b/.github/actions/setup-env/action.yml
index 85503c81fe..a55fa05fd7 100644
--- a/.github/actions/setup-env/action.yml
+++ b/.github/actions/setup-env/action.yml
@@ -10,22 +10,6 @@ inputs:
runs:
using: "composite"
steps:
- # This cleans up the GitHub action images, removing unnecessary packages
such as Android Studio and DOTNet libraries.
- # This can provide up to 7GB of free space for the rest of the build.
- - name: "Clear storage usage from unnecessary packages"
- uses: jlumbroso/free-disk-space@76866dbe54312617f00798d1762df7f43def6e5c
- if: runner.os == 'Linux'
- with:
- # this might remove tools that are actually needed,
- # if set to "true" but frees about 6 GB
- tool-cache: false
- # other packages
- android: true
- dotnet: true
- haskell: true
- large-packages: false
- swap-storage: false
-
- name: "Print storage usage (before setup)"
shell: bash
run: |
@@ -41,7 +25,7 @@ runs:
mkdir tmp
- name: "Setup pnpm"
- uses: pnpm/action-setup@c3b53f6a16e57305370b4ae5a540c2077a1d50dd
+ uses: pnpm/action-setup@v2
with:
version: 8.7.0
@@ -51,7 +35,7 @@ runs:
node-version: 18.14.0
- name: "Setup JDK 11"
- uses: actions/setup-java@de1bb2b0c5634f0fc4438d7aa9944e68f9bf86cc
+ uses: actions/setup-java@v3
with:
java-version: 11
distribution: "zulu"
@@ -62,7 +46,7 @@ runs:
go-version: "1.21.1"
- name: "Set up Maven"
- uses: stCarolas/setup-maven@07fbbe97d97ef44336b7382563d66743297e442f
#v4.5
+ uses: stCarolas/[email protected]
with:
maven-version: 3.8.6
diff --git a/.github/workflows/ci_build.yml b/.github/workflows/ci_build.yml
index 33f65a21f7..6bbd52ba25 100644
--- a/.github/workflows/ci_build.yml
+++ b/.github/workflows/ci_build.yml
@@ -1,4 +1,4 @@
-name: "CI :: Build"
+name: "CI :: Build (Windows and MacOS)"
on:
push:
@@ -21,7 +21,7 @@ jobs:
strategy:
fail-fast: false
matrix:
- os: [ubuntu-latest, macos-latest, windows-latest]
+ os: [macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: "Support longpaths"
@@ -71,10 +71,6 @@ jobs:
echo "Done"
- - name: "Start telemetry service (`main` only)"
- if: steps.setup_build_mode.outputs.mode != 'none' &&
!github.event.pull_request
- uses:
runforesight/workflow-telemetry-action@6705383eabd01833acfe8412ec697384830e1455
#v1.8.7
-
- name: "Setup environment"
if: steps.setup_build_mode.outputs.mode != 'none'
uses: ./.github/actions/setup-env
diff --git a/.github/workflows/ci_check_code_formatting.yml
b/.github/workflows/ci_check_code_formatting.yml
index 6ab373da22..3a8f604444 100644
--- a/.github/workflows/ci_check_code_formatting.yml
+++ b/.github/workflows/ci_check_code_formatting.yml
@@ -1,10 +1,11 @@
name: "CI :: Code formatting"
on:
- push:
- branches: [main]
- pull_request:
- branches: ["**"]
+ workflow_dispatch:
+ # push:
+ # branches: [main]
+ # pull_request:
+ # branches: ["**"]
concurrency:
group: ${{ github.event.pull_request &&
format('check-code-formatting-pr-{0}', github.event.pull_request.number) ||
format('check-code-formatting-push-main-{0}', github.sha) }}
diff --git a/.github/workflows/ci_check_dependencies_consistency.yaml
b/.github/workflows/ci_check_dependencies_consistency.yaml
index 2105e1ea2a..7110803e5a 100644
--- a/.github/workflows/ci_check_dependencies_consistency.yaml
+++ b/.github/workflows/ci_check_dependencies_consistency.yaml
@@ -1,10 +1,11 @@
name: "CI :: Dependencies consistency"
on:
- push:
- branches: [main]
- pull_request:
- branches: ["**"]
+ workflow_dispatch:
+ # push:
+ # branches: [main]
+ # pull_request:
+ # branches: ["**"]
concurrency:
group: ${{ github.event.pull_request &&
format('check-dependencies-consistency-pr-{0}',
github.event.pull_request.number) ||
format('check-dependencies-consistency-push-main-{0}', github.sha) }}
diff --git a/.github/workflows/ci_codeql.yml b/.github/workflows/ci_codeql.yml
index 36584f7474..ebd69b7174 100644
--- a/.github/workflows/ci_codeql.yml
+++ b/.github/workflows/ci_codeql.yml
@@ -12,11 +12,11 @@
name: "CI :: CodeQL"
on:
- push:
- branches: [main]
- pull_request:
- # The branches below must be a subset of the branches above
- branches: [main]
+ # push:
+ # branches: [main]
+ # pull_request:
+ # # The branches below must be a subset of the branches above
+ # branches: [main]
schedule:
- cron: "31 15 * * 0"
diff --git a/.github/workflows/ci_sonar_analysis_stunner_editors.yml
b/.github/workflows/ci_sonar_analysis_stunner_editors.yml
index 9f90939b5a..f9f05444fa 100644
--- a/.github/workflows/ci_sonar_analysis_stunner_editors.yml
+++ b/.github/workflows/ci_sonar_analysis_stunner_editors.yml
@@ -1,11 +1,12 @@
name: "CI :: Sonar :: stunner-editors"
on:
- push:
- branches:
- - main
- paths:
- - "packages/stunner-editors/**"
- - ".github/workflows/ci_sonar_analysis_stunner_editors.yml"
+ workflow_dispatch:
+ # push:
+ # branches:
+ # - main
+ # paths:
+ # - "packages/stunner-editors/**"
+ # - ".github/workflows/ci_sonar_analysis_stunner_editors.yml"
jobs:
check:
diff --git a/.github/workflows/daily_dev_publish.yml
b/.github/workflows/daily_dev_publish.yml
index 7b489c676b..1c184d8e0e 100644
--- a/.github/workflows/daily_dev_publish.yml
+++ b/.github/workflows/daily_dev_publish.yml
@@ -1,12 +1,12 @@
name: "Daily dev :: Publish"
on:
- schedule:
- - cron: "0 2 * * *" # 2am UTC everyday
+ # schedule:
+ # - cron: "0 2 * * *" # 2am UTC everyday
workflow_dispatch:
- pull_request:
- paths:
- - ".github/workflows/daily_dev_publish.yml"
+ # pull_request:
+ # paths:
+ # - ".github/workflows/daily_dev_publish.yml"
concurrency:
group: ${{ github.event.pull_request && format('daily-dev-publish-pr-{0}',
github.event.pull_request.number) || format('daily-dev-publish-ref-{0}',
github.ref_name) }}
diff --git a/.github/workflows/jenkins-tests-PR.yml
b/.github/workflows/jenkins-tests-PR.yml
index bea36579da..b667a5d4c6 100644
--- a/.github/workflows/jenkins-tests-PR.yml
+++ b/.github/workflows/jenkins-tests-PR.yml
@@ -2,12 +2,13 @@
# For more information see:
https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
name: Jenkins Tests
on:
- pull_request:
- branches:
- - "main"
- paths:
- - ".ci/jenkins/**"
- - ".github/workflows/jenkins-tests-PR.yml"
+ workflow_dispatch:
+ # pull_request:
+ # branches:
+ # - "main"
+ # paths:
+ # - ".ci/jenkins/**"
+ # - ".github/workflows/jenkins-tests-PR.yml"
jobs:
dsl-tests:
diff --git a/.github/workflows/publish_jitexecutor_native.yml
b/.github/workflows/publish_jitexecutor_native.yml
index 9cf7482ecd..0dd09f4108 100644
--- a/.github/workflows/publish_jitexecutor_native.yml
+++ b/.github/workflows/publish_jitexecutor_native.yml
@@ -34,13 +34,13 @@ jobs:
ref: ${{ github.event.inputs.kogito_runtime_version }}
- name: "Set up Maven"
- uses: stCarolas/setup-maven@07fbbe97d97ef44336b7382563d66743297e442f
#v4.5
+ uses: stCarolas/[email protected]
with:
maven-version: 3.8.6
- name: "Set up JDK 11"
if: runner.os != 'Windows'
- uses: actions/setup-java@de1bb2b0c5634f0fc4438d7aa9944e68f9bf86cc
+ uses: actions/setup-java@v3
with:
java-version: "11"
distribution: "zulu"
@@ -78,7 +78,7 @@ jobs:
- name: "Setup MSCV"
if: runner.os == 'Windows'
- uses: ilammy/msvc-dev-cmd@cec98b9d092141f74527d0afa6feb2af698cfe89
#v1.12.1
+ uses: ilammy/msvc-dev-cmd@v1
- name: "Setup MSBUILD"
if: runner.os == 'Windows'
diff --git a/.github/workflows/release_build_extended_services.yml
b/.github/workflows/release_build_extended_services.yml
new file mode 100644
index 0000000000..1818f7af30
--- /dev/null
+++ b/.github/workflows/release_build_extended_services.yml
@@ -0,0 +1,87 @@
+name: "Release :: Build (Extended Services)"
+
+on:
+ workflow_call:
+ inputs:
+ dry_run:
+ type: boolean
+ required: true
+ base_ref:
+ type: string
+ required: true
+ tag:
+ type: string
+ required: false
+ default: "0.0.0"
+ upload_asset_url:
+ type: string
+ required: false
+ default: ""
+ secrets:
+ gh_token:
+ required: false
+
+env:
+ KIE_TOOLS_BUILD__runLinters: "false"
+ KIE_TOOLS_BUILD__runTests: "false"
+ KIE_TOOLS_BUILD__runEndToEndTests: "false"
+ KIE_TOOLS_BUILD__buildContainerImages: "true"
+
+jobs:
+ extended_services:
+ env:
+ EXTENDED_SERVICES__kieSandboxUrl:
"https://kiegroup.github.io/kogito-online"
+
+ runs-on: ${{ matrix.os }}
+ strategy:
+ matrix:
+ os: [macos-latest, windows-latest]
+ steps:
+ - name: "Support longpaths (Windows only)"
+ if: runner.os == 'Windows'
+ run: git config --system core.longpaths true
+
+ - name: "Checkout @ GitHub default"
+ uses: actions/checkout@v3
+
+ - name: "Checkout @ Simulated squashed-merge if PR"
+ uses: ./.github/actions/checkout-pr
+ with:
+ ref: ${{ inputs.base_ref }}
+
+ - name: "Setup environment"
+ id: setup_env
+ uses: ./.github/actions/setup-env
+
+ - name: "Bootstrap"
+ id: bootstrap
+ uses: ./.github/actions/bootstrap
+ with:
+ pnpm_filter_string: -F @kie-tools/extended-services...
+
+ - name: "Build"
+ shell: bash
+ run: |
+ pnpm ${{ steps.bootstrap.outputs.pnpm_filter_string }} build:prod
+
+ - name: "Upload Extended Services for macOS (macOS only)"
+ if: ${{ runner.os == 'macOS' && !inputs.dry_run }}
+ uses: actions/[email protected]
+ env:
+ GITHUB_TOKEN: ${{ secrets.gh_token }}
+ with:
+ upload_url: ${{ inputs.upload_asset_url }}
+ asset_path: ./packages/extended-services/dist/darwin/Kogito.dmg
+ asset_name: kie_sandbox_extended_services_macos_${{ inputs.tag }}.dmg
+ asset_content_type: application/octet-stream
+
+ - name: "Upload Extended Services for Windows (Windows only)"
+ if: ${{ runner.os == 'Windows' && !inputs.dry_run }}
+ uses: actions/[email protected]
+ env:
+ GITHUB_TOKEN: ${{ secrets.gh_token }}
+ with:
+ upload_url: ${{ inputs.upload_asset_url }}
+ asset_path:
"./packages/extended-services/dist/win32/kie_sandbox_extended_services.exe"
+ asset_name: "kie_sandbox_extended_services_windows_${{ inputs.tag
}}.exe"
+ asset_content_type: application/octet-stream
diff --git a/.github/workflows/release_dry_run.yml
b/.github/workflows/release_dry_run.yml
index 612b4425b4..2ad86dbe0a 100644
--- a/.github/workflows/release_dry_run.yml
+++ b/.github/workflows/release_dry_run.yml
@@ -2,13 +2,13 @@ name: "Release :: Dry Run"
on:
workflow_dispatch:
- schedule:
- - cron: "0 4 * * *" # 4am UTC everyday
- pull_request:
- branches: ["**"]
- paths:
- - ".github/workflows/release*"
- - ".github/actions/**"
+ # schedule:
+ # - cron: "0 4 * * *" # 4am UTC everyday
+ # pull_request:
+ # branches: ["**"]
+ # paths:
+ # - ".github/workflows/release*"
+ # - ".github/actions/**"
concurrency:
group: ${{ github.event.pull_request && format('release-dry-run-pr-{0}',
github.event.pull_request.number) || format('release-dry-run-ref-{0}',
github.ref_name) }}
diff --git a/.github/workflows/staging_dry_run.yml
b/.github/workflows/release_dry_run_extended_services.yml
similarity index 50%
copy from .github/workflows/staging_dry_run.yml
copy to .github/workflows/release_dry_run_extended_services.yml
index 240534b9bd..1f681d830c 100644
--- a/.github/workflows/staging_dry_run.yml
+++ b/.github/workflows/release_dry_run_extended_services.yml
@@ -1,22 +1,22 @@
-name: "Staging :: Dry Run"
+name: "Release :: Dry Run (Extended Services)"
on:
workflow_dispatch:
schedule:
- - cron: "0 3 * * *" # 3am UTC everyday
+ - cron: "0 4 * * *" # 4am UTC everyday
pull_request:
branches: ["**"]
paths:
- - ".github/workflows/staging*"
+ - ".github/workflows/release*"
- ".github/actions/**"
concurrency:
- group: ${{ github.event.pull_request && format('staging-dry-run-pr-{0}',
github.event.pull_request.number) || format('staging-dry-run-ref-{0}',
github.ref_name) }}
+ group: ${{ github.event.pull_request && format('release-dry-run-pr-{0}',
github.event.pull_request.number) || format('release-dry-run-ref-{0}',
github.ref_name) }}
cancel-in-progress: true
jobs:
dry_run:
- uses: ./.github/workflows/staging_build.yml
+ uses: ./.github/workflows/release_build_extended_services.yml
with:
dry_run: true
base_ref: ${{ github.event.pull_request && github.base_ref || github.ref
}}
diff --git a/.github/workflows/release_publish_extended_services.yml
b/.github/workflows/release_publish_extended_services.yml
new file mode 100644
index 0000000000..0dfe102d3a
--- /dev/null
+++ b/.github/workflows/release_publish_extended_services.yml
@@ -0,0 +1,47 @@
+name: "Release :: Publish (Extended Services)"
+
+on:
+ workflow_dispatch:
+ inputs:
+ tag:
+ type: string
+ required: true
+ description: "Tag associated with the release"
+
+jobs:
+ prepare:
+ runs-on: ubuntu-latest
+ outputs:
+ upload_asset_url: ${{
fromJSON(steps.fetch_release_for_tag.outputs.data).upload_url }}
+ release_ref: ${{
fromJSON(steps.fetch_release_for_tag.outputs.data).target_commitish }}
+ steps:
+ - name: "Fetch release for ${{ github.event.inputs.tag }}"
+ uses: octokit/[email protected]
+ id: fetch_release_for_tag
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ with:
+ route: GET /repos/{repo}/releases/tags/{tag}
+ repo: ${{ github.repository }}
+ tag: ${{ github.event.inputs.tag }}
+
+ - name: "Checkout"
+ uses: actions/checkout@v3
+ with:
+ ref: ${{
fromJSON(steps.fetch_release_for_tag.outputs.data).target_commitish }}
+
+ - name: "Check `tag` against `(package.json).version`"
+ shell: bash
+ run: |
+ [ "${{ github.event.inputs.tag }}" == "$(node -p
"require('./package.json').version")" ]
+
+ build_and_publish:
+ needs: [prepare]
+ uses: ./.github/workflows/release_build_extended_services.yml
+ with:
+ dry_run: false
+ base_ref: ${{ needs.prepare.outputs.release_ref }}
+ tag: ${{ github.event.inputs.tag }}
+ upload_asset_url: ${{ needs.prepare.outputs.upload_asset_url }}
+ secrets:
+ gh_token: ${{ secrets.GITHUB_TOKEN }}
diff --git a/.github/workflows/staging_build_extended_services.yml
b/.github/workflows/staging_build_extended_services.yml
new file mode 100644
index 0000000000..77e748d85c
--- /dev/null
+++ b/.github/workflows/staging_build_extended_services.yml
@@ -0,0 +1,89 @@
+name: "Staging :: Build (Extended Services)"
+
+on:
+ workflow_call:
+ inputs:
+ dry_run:
+ type: boolean
+ required: true
+ base_ref:
+ type: string
+ required: true
+ tag:
+ type: string
+ required: false
+ default: "0.0.0"
+ upload_asset_url:
+ type: string
+ required: false
+ default: ""
+ secrets:
+ gh_token:
+ required: false
+
+env:
+ TMPDIR: "${{ github.workspace }}/kie-tools/tmp"
+
+jobs:
+ build:
+ runs-on: ${{ matrix.os }}
+
+ strategy:
+ matrix:
+ os: [macos-latest, windows-latest]
+ steps:
+ - name: "Support longpaths (Windows only)"
+ if: runner.os == 'Windows'
+ run: git config --system core.longpaths true
+
+ - name: "Checkout @ GitHub default"
+ uses: actions/checkout@v3
+ with:
+ path: kie-tools
+
+ - name: "Checkout @ Simulated squashed-merge if PR"
+ uses: ./kie-tools/.github/actions/checkout-pr
+ with:
+ ref: ${{ inputs.base_ref }}
+ path: kie-tools
+
+ - name: "Setup environment"
+ uses: ./kie-tools/.github/actions/setup-env
+ with:
+ working_dir: kie-tools
+
+ - name: "Bootstrap"
+ id: bootstrap
+ uses: ./kie-tools/.github/actions/bootstrap
+ with:
+ working_dir: kie-tools
+ pnpm_filter_string: -F @kie-tools/extended-services...
+
+ - name: "Build Extended Services"
+ working-directory: ${{ github.workspace }}/kie-tools
+ env:
+ EXTENDED_SERVICES__kieSandboxUrl:
"https://kiegroup.github.io/kogito-online-staging/${{ inputs.tag }}-prerelease"
+ run: >-
+ pnpm ${{ steps.bootstrap.outputs.pnpm_filter_string }} build:prod
+
+ - name: "STAGING: Upload Extended Services for macOS (macOS only)"
+ if: ${{ runner.os == 'macOS' && !inputs.dry_run }}
+ uses: actions/[email protected]
+ env:
+ GITHUB_TOKEN: ${{ secrets.gh_token }}
+ with:
+ upload_url: ${{ inputs.upload_asset_url }}
+ asset_path: ${{ github.workspace
}}/kie-tools/packages/extended-services/dist/darwin/Kogito.dmg
+ asset_name: STAGING__kie_sandbox_extended_services_macos_${{
inputs.tag }}.dmg
+ asset_content_type: application/octet-stream
+
+ - name: "STAGING: Upload Extended Services for Windows (Windows only)"
+ if: ${{ runner.os == 'Windows' && !inputs.dry_run }}
+ uses: actions/[email protected]
+ env:
+ GITHUB_TOKEN: ${{ secrets.gh_token }}
+ with:
+ upload_url: ${{ inputs.upload_asset_url }}
+ asset_path: "${{ github.workspace
}}/kie-tools/packages/extended-services/dist/win32/kie_sandbox_extended_services.exe"
+ asset_name: "STAGING__kie_sandbox_extended_services_windows_${{
inputs.tag }}.exe"
+ asset_content_type: application/octet-stream
diff --git a/.github/workflows/staging_dry_run.yml
b/.github/workflows/staging_dry_run.yml
index 240534b9bd..7b5ba4da0d 100644
--- a/.github/workflows/staging_dry_run.yml
+++ b/.github/workflows/staging_dry_run.yml
@@ -2,13 +2,13 @@ name: "Staging :: Dry Run"
on:
workflow_dispatch:
- schedule:
- - cron: "0 3 * * *" # 3am UTC everyday
- pull_request:
- branches: ["**"]
- paths:
- - ".github/workflows/staging*"
- - ".github/actions/**"
+ # schedule:
+ # - cron: "0 3 * * *" # 3am UTC everyday
+ # pull_request:
+ # branches: ["**"]
+ # paths:
+ # - ".github/workflows/staging*"
+ # - ".github/actions/**"
concurrency:
group: ${{ github.event.pull_request && format('staging-dry-run-pr-{0}',
github.event.pull_request.number) || format('staging-dry-run-ref-{0}',
github.ref_name) }}
diff --git a/.github/workflows/staging_dry_run.yml
b/.github/workflows/staging_dry_run_extended_services.yml
similarity index 82%
copy from .github/workflows/staging_dry_run.yml
copy to .github/workflows/staging_dry_run_extended_services.yml
index 240534b9bd..6b04f976e6 100644
--- a/.github/workflows/staging_dry_run.yml
+++ b/.github/workflows/staging_dry_run_extended_services.yml
@@ -1,4 +1,4 @@
-name: "Staging :: Dry Run"
+name: "Staging :: Dry Run (Extended Services)"
on:
workflow_dispatch:
@@ -16,7 +16,7 @@ concurrency:
jobs:
dry_run:
- uses: ./.github/workflows/staging_build.yml
+ uses: ./.github/workflows/staging_build_extended_services.yml
with:
dry_run: true
base_ref: ${{ github.event.pull_request && github.base_ref || github.ref
}}
diff --git a/.github/workflows/staging_publish.yml
b/.github/workflows/staging_publish.yml
index 985a75e9cf..0336620102 100644
--- a/.github/workflows/staging_publish.yml
+++ b/.github/workflows/staging_publish.yml
@@ -1,8 +1,9 @@
name: "Staging :: Publish"
on:
- push:
- branches: ["**-prerelease"]
+ workflow_dispatch:
+ # push:
+ # branches: ["**-prerelease"]
concurrency:
group: staging-publish
diff --git a/.github/workflows/staging_publish_extended_services.yml
b/.github/workflows/staging_publish_extended_services.yml
new file mode 100644
index 0000000000..a644bf8db0
--- /dev/null
+++ b/.github/workflows/staging_publish_extended_services.yml
@@ -0,0 +1,51 @@
+name: "Staging :: Publish (Extended Services)"
+
+on:
+ workflow_dispatch:
+ inputs:
+ tag:
+ type: string
+ required: true
+ description: "Tag associated with the pre-release"
+
+concurrency:
+ group: staging-publish
+ cancel-in-progress: true
+
+jobs:
+ prepare:
+ runs-on: ubuntu-latest
+ outputs:
+ upload_asset_url: ${{
fromJSON(steps.fetch_release_for_tag.outputs.data).upload_url }}
+ release_ref: ${{
fromJSON(steps.fetch_release_for_tag.outputs.data).target_commitish }}
+ steps:
+ - name: "Fetch pre-release for ${{ github.event.inputs.tag }}"
+ uses: octokit/[email protected]
+ id: fetch_release_for_tag
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ with:
+ route: GET /repos/{repo}/releases/tags/{tag}
+ repo: ${{ github.repository }}
+ tag: ${{ github.event.inputs.tag }}
+
+ - name: "Checkout"
+ uses: actions/checkout@v3
+ with:
+ ref: ${{
fromJSON(steps.fetch_release_for_tag.outputs.data).target_commitish }}
+
+ - name: "Check `tag` against `(package.json).version`"
+ shell: bash
+ run: |
+ [ "${{ github.event.inputs.tag }}" == "$(node -p
"require('./package.json').version")" ]
+
+ build_and_publish:
+ needs: [prepare]
+ uses: ./.github/workflows/staging_build_extended_services.yml
+ with:
+ dry_run: false
+ base_ref: ${{ needs.prepare.outputs.release_ref }}
+ tag: ${{ github.event.inputs.tag }}
+ upload_asset_url: ${{ needs.prepare.outputs.upload_asset_url }}
+ secrets:
+ gh_token: ${{ secrets.GITHUB_TOKEN }}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]