name: CI on: push: branches: - main - beta - release # release branches - release* - lts* # nightly ci cron branches - cron* paths-ignore: - "CHANGELOG.md" pull_request: workflow_dispatch: permissions: contents: read jobs: tests: uses: ./.github/workflows/ci-jobs.yml publish: name: Publish channel to s3 runs-on: ubuntu-latest needs: [tests] # Only run on pushes to branches that are not from the cron workflow if: github.event_name == 'push' && contains(github.ref, 'cron') != true steps: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 # zizmor: ignore[artipacked] creds are used for build-for-publishing.cjs - uses: ./.github/actions/setup - name: build for publish run: node bin/build-for-publishing.cjs - name: publish to s3 run: node bin/publish-to-s3.mjs env: S3_BUCKET_NAME: "builds.emberjs.com" S3_SECRET_ACCESS_KEY: ${{ secrets.S3_SECRET_ACCESS_KEY}} S3_ACCESS_KEY_ID: ${{ secrets.S3_ACCESS_KEY_ID}} publish-alpha: name: Publish alpha from default branch runs-on: ubuntu-latest needs: [tests] # Only run on pushes to main if: github.event_name == 'push' && github.ref == 'refs/heads/main' steps: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 # zizmor: ignore[artipacked] creds are used for build-for-publishing.cjs - uses: ./.github/actions/setup - name: build for publish run: node bin/build-for-publishing.cjs - name: publish to s3 run: node bin/publish-to-s3.mjs env: BUILD_TYPE: alpha OVERRIDE_FEATURES: "" S3_BUCKET_NAME: "builds.emberjs.com" S3_SECRET_ACCESS_KEY: ${{ secrets.S3_SECRET_ACCESS_KEY}} S3_ACCESS_KEY_ID: ${{ secrets.S3_ACCESS_KEY_ID}} notify: name: Notify Discord runs-on: ubuntu-latest needs: [tests] if: failure() && contains(github.ref, 'cron') == true steps: - uses: sarisia/actions-status-discord@eb045afee445dc055c18d3d90bd0f244fd062708 # v1.16.0 with: webhook: ${{ secrets.FRAMEWORK_WEBHOOK }} status: "Failure" title: "Ember.js Nightly CI" color: 0xcc0000 url: "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" username: GitHub Actions