Fix branch names in CI
This commit is contained in:
parent
aed1548929
commit
d57bb5bb76
4 changed files with 8 additions and 9 deletions
2
.github/workflows/build.yaml
vendored
2
.github/workflows/build.yaml
vendored
|
@ -2,7 +2,7 @@ name: Build
|
|||
on:
|
||||
pull_request: {}
|
||||
push:
|
||||
branches: [main]
|
||||
branches: [livekit]
|
||||
jobs:
|
||||
build:
|
||||
name: Build
|
||||
|
|
2
.github/workflows/e2e.yml
vendored
2
.github/workflows/e2e.yml
vendored
|
@ -5,7 +5,7 @@ on:
|
|||
types:
|
||||
- completed
|
||||
branches-ignore:
|
||||
- "main"
|
||||
- "livekit"
|
||||
jobs:
|
||||
e2e:
|
||||
name: E2E tests runs on Element Call
|
||||
|
|
|
@ -5,7 +5,7 @@ on:
|
|||
types:
|
||||
- completed
|
||||
branches:
|
||||
- "main"
|
||||
- "full-mesh"
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
|
@ -16,7 +16,7 @@ jobs:
|
|||
# so we need to check the head repo too in order to not run on PRs from forks
|
||||
# We check the branch name again too just for completeness
|
||||
# (Is there a nicer way to see if a PR is from a fork?)
|
||||
if: github.event.workflow_run.conclusion == 'success' && github.event.workflow_run.head_repository.full_name == 'vector-im/element-call' && github.event.workflow_run.head_branch == 'main'
|
||||
if: github.event.workflow_run.conclusion == 'success' && github.event.workflow_run.head_repository.full_name == 'vector-im/element-call' && github.event.workflow_run.head_branch == 'full-mesh'
|
||||
steps:
|
||||
- name: Create Deployment
|
||||
uses: bobheadxi/deployments@v1
|
9
.github/workflows/netlify-livekit.yaml
vendored
9
.github/workflows/netlify-livekit.yaml
vendored
|
@ -1,11 +1,11 @@
|
|||
name: Netlify LiveKit Experiment
|
||||
name: Netlify LiveKit
|
||||
on:
|
||||
workflow_run:
|
||||
workflows: ["Build"]
|
||||
types:
|
||||
- completed
|
||||
branches:
|
||||
- "livekit-experiment"
|
||||
- "livekit"
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
|
@ -16,7 +16,7 @@ jobs:
|
|||
# so we need to check the head repo too in order to not run on PRs from forks
|
||||
# We check the branch name again too just for completeness
|
||||
# (Is there a nicer way to see if a PR is from a fork?)
|
||||
if: github.event.workflow_run.conclusion == 'success' && github.event.workflow_run.head_repository.full_name == 'vector-im/element-call' && github.event.workflow_run.head_branch == 'livekit-experiment'
|
||||
if: github.event.workflow_run.conclusion == 'success' && github.event.workflow_run.head_repository.full_name == 'vector-im/element-call' && github.event.workflow_run.head_branch == 'livekit'
|
||||
steps:
|
||||
- name: Create Deployment
|
||||
uses: bobheadxi/deployments@v1
|
||||
|
@ -64,12 +64,11 @@ jobs:
|
|||
with:
|
||||
publish-dir: dist
|
||||
deploy-message: "Deploy from GitHub Actions"
|
||||
production-branch: livekit-experiment
|
||||
production-branch: livekit
|
||||
production-deploy: true
|
||||
# These don't work because we're in workflow_run
|
||||
enable-pull-request-comment: false
|
||||
enable-commit-comment: false
|
||||
github-deployment-environment: livekit-experiment
|
||||
env:
|
||||
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
|
||||
NETLIFY_SITE_ID: e3b9fa82-c040-4db6-b4bf-42b524d57423
|
||||
|
|
Loading…
Add table
Reference in a new issue