Skip to content

Commit

Permalink
on branch create as well (#3797)
Browse files Browse the repository at this point in the history
* on branch create as well
  • Loading branch information
himadrisingh authored Jan 9, 2024
1 parent 56801f9 commit 3b8221e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/rill-cloud.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,22 @@
# Each merge to main branch is build with github sha tag and published to Rill Cloud.
name: Deploy to Rill Cloud
on:
create:
push:
tags:
- "**"
branches:
- main
- "main"
- "release**"
workflow_dispatch:

env:
RELEASE: ${{ startsWith(github.ref, 'refs/tags/v') }}

jobs:
release:
# https://github.com/orgs/community/discussions/54860
if: github.event_name == 'workflow_dispatch' || github.event_name == 'push' || ( github.event_name == 'create' && startsWith(github.ref_name, 'release') )
name: Deploy to Rill Cloud
runs-on: ubuntu-latest
steps:
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/rill-ui.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
name: Build and Deploy Cloud UI to Netlify
on:
create:
push:
tags:
- "*"
- "**"
branches:
- "main"
- "release**"
Expand All @@ -26,6 +27,8 @@ env:

jobs:
build:
# https://github.com/orgs/community/discussions/54860
if: github.event_name == 'workflow_dispatch' || github.event_name == 'push' || ( github.event_name == 'create' && startsWith(github.ref_name, 'release') )
runs-on: ubuntu-latest
steps:
- name: Checkout code
Expand Down Expand Up @@ -64,7 +67,7 @@ jobs:
env:
VITE_RILL_ADMIN_URL: https://admin.${{ env.DOMAIN }}

- name: Deploy Cloud UI to Netlify
- name: Deploy Cloud UI to Netlify ui.${{ env.DOMAIN }}
uses: nwtgck/[email protected]
with:
publish-dir: ./web-admin/build
Expand Down

2 comments on commit 3b8221e

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.