Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Romain Casati
Basthon-JupyterLab
Commits
c2d1c2ff
Commit
c2d1c2ff
authored
Apr 26, 2021
by
Jeremy Tuloup
Browse files
Add CI job to deploy to Vercel
parent
ab383767
Changes
2
Hide whitespace changes
Inline
Side-by-side
.github/workflows/build.yml
View file @
c2d1c2ff
...
...
@@ -68,3 +68,36 @@ jobs:
-
name
:
Test
run
:
|
doit test
deploy
:
needs
:
[
build
]
runs-on
:
ubuntu-latest
steps
:
-
name
:
Checkout
uses
:
actions/checkout@v2
-
uses
:
actions/download-artifact@v2
with
:
name
:
jupyterlite dist ${{ github.run_number }}
path
:
./dist
-
name
:
Extract the app
run
:
|
tar -xvf ./dist/*.tgz
-
name
:
Deploy to Production
id
:
prod
run
:
|
if [ "$REF" == 'refs/heads/main' ]
then
echo "::set-output name=vercel-args::--prod"
else
echo "::set-output name=vercel-args::"
fi
env
:
REF
:
${{ github.ref }}
-
uses
:
amondnet/vercel-action@v20
with
:
github-token
:
${{ secrets.GITHUB_TOKEN }}
vercel-token
:
${{ secrets.VERCEL_TOKEN }}
vercel-org-id
:
${{ secrets.VERCEL_ORG_ID}}
vercel-project-id
:
${{ secrets.VERCEL_PROJECT_ID}}
vercel-args
:
${{ steps.prod.outputs.vercel-args }}
working-directory
:
./package
.gitignore
View file @
c2d1c2ff
...
...
@@ -126,3 +126,5 @@ app/kernels
*.log
.doit*
.vercel
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment