Merge pull request #16517 from mixxxdj/sync-branch-2.6-to-main #99
This file contains hidden or 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
| # yaml-language-server: $schema=https://json.schemastore.org/github-workflow | |
| name: Release | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - "[0-9].[0-9]" | |
| tags: | |
| - "[0-9].[0-9].[0-9]" | |
| - "[0-9].[0-9]-*" | |
| workflow_dispatch: | |
| # Global allowed scopes for all actions | |
| permissions: | |
| contents: write # to sync branches | |
| pull-requests: write # to sync branches | |
| checks: write # to create new checks (coverallsapp/github-action) | |
| jobs: | |
| checks: | |
| uses: ./.github/workflows/checks.yml | |
| changelog: | |
| uses: ./.github/workflows/changelog.yml | |
| secrets: | |
| MIXXXBOT_CHANGELOG_AUTOUPDATER_PAT: ${{ secrets.MIXXXBOT_CHANGELOG_AUTOUPDATER_PAT }} | |
| build: | |
| uses: ./.github/workflows/build.yml | |
| with: | |
| publish: true | |
| branch: ${{ github.head_ref || github.ref_name }} | |
| ref: ${{ github.ref }} | |
| secrets: | |
| AZURE_CLIENT_ID: ${{ secrets.AZURE_CLIENT_ID }} | |
| AZURE_CLIENT_SECRET: ${{ secrets.AZURE_CLIENT_SECRET }} | |
| AZURE_TENANT_ID: ${{ secrets.AZURE_TENANT_ID }} | |
| DOWNLOADS_HOSTGATOR_DOT_MIXXX_DOT_ORG_KEY: ${{ secrets.DOWNLOADS_HOSTGATOR_DOT_MIXXX_DOT_ORG_KEY }} | |
| DOWNLOADS_HOSTGATOR_DOT_MIXXX_DOT_ORG_KEY_PASSWORD: ${{ secrets.DOWNLOADS_HOSTGATOR_DOT_MIXXX_DOT_ORG_KEY_PASSWORD }} | |
| MACOS_CODESIGN_CERTIFICATE_P12_BASE64: ${{ secrets.MACOS_CODESIGN_CERTIFICATE_P12_BASE64 }} | |
| MACOS_CODESIGN_CERTIFICATE_PASSWORD: ${{ secrets.MACOS_CODESIGN_CERTIFICATE_PASSWORD }} | |
| MACOS_NOTARIZATION_APP_SPECIFIC_PASSWORD: ${{ secrets.MACOS_NOTARIZATION_APP_SPECIFIC_PASSWORD }} | |
| ANDROID_SIGNING_KEYSTORE_BASE64: ${{ secrets.ANDROID_SIGNING_KEYSTORE_BASE64 }} | |
| ANDROID_SIGNING_PASSWORD: ${{ secrets.ANDROID_SIGNING_PASSWORD }} | |
| NETLIFY_BUILD_HOOK: ${{ secrets.NETLIFY_BUILD_HOOK }} | |
| RRYAN_AT_MIXXX_DOT_ORG_GPG_PRIVATE_KEY: ${{ secrets.RRYAN_AT_MIXXX_DOT_ORG_GPG_PRIVATE_KEY }} | |
| benchmark: | |
| uses: ./.github/workflows/benchmark.yml | |
| with: | |
| branch: ${{ github.head_ref || github.ref_name }} | |
| publish: | |
| needs: | |
| - build | |
| uses: ./.github/workflows/flatpak.yml | |
| # Flatpak repo only support stable (non-beta tag release), beta and alpha release publication | |
| if: ${{ (github.ref_type == 'tag' && !contains('-', github.ref_name)) || github.ref_name == '2.6' || github.ref_name == 'main' }} | |
| with: | |
| ref: ${{ github.ref }} | |
| update_repo: ${{ github.ref_name == 'main' }} | |
| run_id: ${{ github.run_id }} | |
| secrets: | |
| DOWNLOADS_HOSTGATOR_DOT_MIXXX_DOT_ORG_KEY: ${{ secrets.DOWNLOADS_HOSTGATOR_DOT_MIXXX_DOT_ORG_KEY }} | |
| RRYAN_AT_MIXXX_DOT_ORG_GPG_PRIVATE_KEY: ${{ secrets.RRYAN_AT_MIXXX_DOT_ORG_GPG_PRIVATE_KEY }} | |
| sync: | |
| if: ${{ github.ref_type != 'tag' && github.ref != 'refs/heads/main' && github.repository == 'mixxxdj/mixxx' }} | |
| uses: ./.github/workflows/sync_branches.yml | |
| secrets: | |
| MIXXX_BRANCH_SYNC_PAT: ${{ secrets.MIXXX_BRANCH_SYNC_PAT }} |