NIGHTLY #1291
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: NIGHTLY | |
on: | |
schedule: | |
- cron: '0 18 * * *' | |
jobs: | |
build_nightly: | |
name: Build nightly | |
strategy: | |
matrix: | |
include: | |
- os: ubuntu-latest | |
files: | |
- 'dist/camunda-modeler-nightly-linux-x64.tar.gz' | |
- os: macos-latest | |
files: | |
- 'dist/camunda-modeler-nightly-mac-arm64.dmg' | |
- 'dist/camunda-modeler-nightly-mac-arm64.zip' | |
- 'dist/camunda-modeler-nightly-mac-x64.dmg' | |
- 'dist/camunda-modeler-nightly-mac-x64.zip' | |
- os: windows-2022 | |
files: | |
- 'dist/camunda-modeler-nightly-win-ia32.zip' | |
- 'dist/camunda-modeler-nightly-win-x64.zip' | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Use Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
cache: 'npm' | |
- name: Install dependencies | |
run: npm ci | |
- name: Import Secrets | |
id: secrets | |
uses: hashicorp/[email protected] | |
with: | |
url: ${{ secrets.VAULT_ADDR }} | |
method: approle | |
roleId: ${{ secrets.VAULT_ROLE_ID }} | |
secretId: ${{ secrets.VAULT_SECRET_ID }} | |
exportEnv: false | |
secrets: | | |
secret/data/products/desktop-modeler/ci/sentry SENTRY_AUTH_TOKEN; | |
secret/data/products/desktop-modeler/ci/sentry SENTRY_DSN; | |
secret/data/products/desktop-modeler/ci/sentry SENTRY_ORG; | |
secret/data/products/desktop-modeler/ci/sentry SENTRY_PROJECT; | |
secret/data/common/jenkins/downloads-camunda-cloud_google_sa_key DOWNLOAD_CENTER_GCLOUD_KEY_BYTES | GCP_CREDENTIALS_NAME; | |
- name: Build nightly (Linux) | |
if: ${{ runner.os == 'Linux' }} | |
env: | |
CSC_LINK: "${{ secrets.CSC_LINK }}" | |
CSC_KEY_PASSWORD: "${{ secrets.CSC_KEY_PASSWORD }}" | |
MIXPANEL_TOKEN: "${{ secrets.MIXPANEL_PROJECT_TOKEN }}" | |
MIXPANEL_STAGE: "int" | |
NIGHTLY: 1 | |
SENTRY_AUTH_TOKEN: "${{ steps.secrets.outputs.SENTRY_AUTH_TOKEN }}" | |
SENTRY_DSN: "${{ steps.secrets.outputs.SENTRY_DSN }}" | |
SENTRY_ORG: "${{ steps.secrets.outputs.SENTRY_ORG }}" | |
SENTRY_PROJECT: "${{ steps.secrets.outputs.SENTRY_PROJECT }}" | |
UPDATES_SERVER_PRODUCT_NAME: "${{ secrets.UPDATES_SERVER_PRODUCT_NAME }}" | |
run: npm run build -- --linux | |
- name: Build nightly (MacOS) | |
if: ${{ runner.os == 'macOS' }} | |
env: | |
APPLE_DEVELOPER_ID: "${{ secrets.APPLE_DEVELOPER_ID }}" | |
APPLE_DEVELOPER_ID_PASSWORD: "${{ secrets.APPLE_DEVELOPER_ID_PASSWORD }}" | |
APPLE_TEAM_ID: "${{ secrets.APPLE_TEAM_ID }}" | |
CSC_LINK: "${{ secrets.CSC_LINK }}" | |
CSC_KEY_PASSWORD: "${{ secrets.CSC_KEY_PASSWORD }}" | |
MIXPANEL_TOKEN: "${{ secrets.MIXPANEL_PROJECT_TOKEN }}" | |
MIXPANEL_STAGE: "int" | |
NIGHTLY: 1 | |
SENTRY_AUTH_TOKEN: "${{ steps.secrets.outputs.SENTRY_AUTH_TOKEN }}" | |
SENTRY_DSN: "${{ steps.secrets.outputs.SENTRY_DSN }}" | |
SENTRY_ORG: "${{ steps.secrets.outputs.SENTRY_ORG }}" | |
SENTRY_PROJECT: "${{ steps.secrets.outputs.SENTRY_PROJECT }}" | |
UPDATES_SERVER_PRODUCT_NAME: "${{ secrets.UPDATES_SERVER_PRODUCT_NAME }}" | |
run: npm run build -- --mac | |
- name: Build nightly (Windows) | |
if: ${{ runner.os == 'Windows' }} | |
env: | |
MIXPANEL_TOKEN: "${{ secrets.MIXPANEL_PROJECT_TOKEN }}" | |
MIXPANEL_STAGE: "int" | |
NIGHTLY: 1 | |
SENTRY_AUTH_TOKEN: "${{ steps.secrets.outputs.SENTRY_AUTH_TOKEN }}" | |
SENTRY_DSN: "${{ steps.secrets.outputs.SENTRY_DSN }}" | |
SENTRY_ORG: "${{ steps.secrets.outputs.SENTRY_ORG }}" | |
SENTRY_PROJECT: "${{ steps.secrets.outputs.SENTRY_PROJECT }}" | |
UPDATES_SERVER_PRODUCT_NAME: "${{ secrets.UPDATES_SERVER_PRODUCT_NAME }}" | |
run: npm run build -- --win | |
- name: Upload artifact to Camunda Download Center | |
uses: camunda/infra-global-github-actions/download-center-upload@5f523a49b3681db91bb985f8763aea8b2dbb529e | |
with: | |
gcp_credentials: ${{ steps.secrets.outputs.GCP_CREDENTIALS_NAME }} | |
env: 'prod' | |
artifact_subpath: 'nightly' | |
artifact_file: "${{ join(matrix.files, ' ') }}" | |
post_failure: | |
name: Notify failure | |
needs: build_nightly | |
if: failure() | |
runs-on: ubuntu-latest | |
steps: | |
- name: Import Secrets | |
id: secrets | |
uses: hashicorp/[email protected] | |
with: | |
url: ${{ secrets.VAULT_ADDR }} | |
method: approle | |
roleId: ${{ secrets.VAULT_ROLE_ID }} | |
secretId: ${{ secrets.VAULT_SECRET_ID }} | |
exportEnv: false | |
secrets: | | |
secret/data/products/desktop-modeler/ci/slack_integration SLACK_CHANNEL_ID; | |
secret/data/products/desktop-modeler/ci/slack_integration SLACK_BOT_TOKEN; | |
- name: Post to a Slack channel | |
uses: slackapi/slack-github-action@v1 | |
with: | |
channel-id: ${{ steps.secrets.outputs.SLACK_CHANNEL_ID }} | |
slack-message: "Nightly build failed. <https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}|Go to the build.>" | |
env: | |
SLACK_BOT_TOKEN: ${{ steps.secrets.outputs.SLACK_BOT_TOKEN }} |