-
Notifications
You must be signed in to change notification settings - Fork 117
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Release cloud-admin to netlify when tag #2057
Merged
Merged
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
662c5d3
Deploy to netlify
himadrisingh eacbc81
Update cloud-admin.yml
himadrisingh 9bc9290
build web-admin
himadrisingh 197ce4a
no secrets
himadrisingh 51442b0
test
himadrisingh bea7468
another try
himadrisingh 7f34e9e
Update cloud-admin.yml
himadrisingh b7a8c25
whats wrong?
himadrisingh 637057e
Update cloud-admin.yml
himadrisingh 6c900af
Update cloud-admin.yml
himadrisingh 606d42d
revert
himadrisingh 07a1307
Update cloud-admin.yml
himadrisingh 2cd5e34
Update cloud-admin.yml
himadrisingh 9d6ca73
Update cloud-admin.yml
himadrisingh fe451a4
npm install
himadrisingh 89f9a59
Update cloud-admin.yml
himadrisingh 9f19f19
Update cloud-admin.yml
himadrisingh ad7b08c
Update .github/workflows/cloud-admin.yml
himadrisingh dd0f113
Apply suggestions from code review
himadrisingh 0e73bee
Update .github/workflows/cloud-admin.yml
himadrisingh File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
name: Build and Deploy Cloud Admin to Netlify | ||
on: | ||
push: | ||
tags: | ||
- "*" | ||
branches: ["main"] | ||
paths: | ||
- ".github/workflows/cloud-admin.yml" | ||
- "web-admin/**" | ||
- "web-common/**" | ||
env: | ||
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} | ||
NETLIFY_SITE_ID: ${{ fromJSON('["e73ac785-882e-425a-8fc8-5432528bb374","afb26917-7a60-47d9-81dc-c0babbb0d9a9"]')[ startsWith(github.ref, 'refs/tags/v') == 'true' ] }} | ||
DEPLOY_SITE: ${{ fromJSON('["ui.rilldata.io","ui.rilldata.com"]')[ startsWith(github.ref, 'refs/tags/v') == 'true' ] }} | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up NodeJS | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16 | ||
|
||
- name: Build Cloud Admin | ||
run: |- | ||
npm install | ||
npm run build -w web-admin | ||
|
||
- name: Deploy cloud-admin to Netlify | ||
uses: nwtgck/actions-netlify@v1.2 | ||
with: | ||
publish-dir: ./web-admin/build | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
deploy-message: "Cloud-admin ${{ github.ref_name }} deployed to ${{ env.DEPLOY_SITE }}" | ||
production-deploy: true | ||
enable-pull-request-comment: false | ||
enable-commit-comment: true | ||
overwrites-pull-request-comment: true | ||
timeout-minutes: 1 |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think we need
paths
here – any tag onmain
can just trigger a build.If you want to keep the
paths
– we also need to addweb-common
here