forked from hoppscotch/hoppscotch
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: shortcode resolution screen is stuck on invalid shortcodes (hopp…
…scotch#3142) Co-authored-by: Andrew Bastin <[email protected]>
- Loading branch information
1 parent
84b0c30
commit 24894e0
Showing
2 changed files
with
55 additions
and
0 deletions.
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,42 @@ | ||
name: Deploy to Netlify (ui) | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
# run this workflow only if an update is made to the ui package | ||
paths: | ||
- "packages/hoppscotch-ui/**" | ||
workflow_dispatch: | ||
|
||
jobs: | ||
deploy: | ||
name: Deploy | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup environment | ||
run: mv .env.example .env | ||
|
||
- name: Setup pnpm | ||
uses: pnpm/[email protected] | ||
with: | ||
version: 8 | ||
run_install: true | ||
|
||
- name: Setup node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ matrix.node }} | ||
cache: pnpm | ||
|
||
- name: Build site | ||
run: pnpm run generate-ui | ||
|
||
# Deploy the ui site with netlify-cli | ||
- name: Deploy to Netlify (ui) | ||
run: npx netlify-cli deploy --dir=packages/hoppscotch-ui/.histoire/dist --prod | ||
env: | ||
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_UI_SITE_ID }} | ||
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} |
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