NIGHTLY #1244
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: | |
strategy: | |
matrix: | |
include: | |
- os: ubuntu-latest | |
files: | |
- 'dist/camunda-modeler-nightly-linux-x64.tar.gz' | |
- os: macos-12 | |
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@bd506eede2ac7028cd90c8835f5d04d583ce9f01 | |
with: | |
gcp_credentials: ${{ steps.secrets.outputs.GCP_CREDENTIALS_NAME }} | |
env: 'prod' | |
artifact_subpath: 'nightly' | |
artifact_file: "${{ join(matrix.files, ' ') }}" | |
Post-Failure: | |
needs: Build_nightly | |
if: failure() | |
runs-on: ubuntu-latest | |
steps: | |
- name: Post to a Slack channel | |
uses: slackapi/[email protected] | |
with: | |
channel-id: ${{ secrets.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: ${{ secrets.SLACK_BOT_TOKEN }} |