Skip to content

Commit

Permalink
Merge pull request #44 from sepal-contrib/voici
Browse files Browse the repository at this point in the history
build planet order application with voici
  • Loading branch information
12rambau authored May 26, 2023
2 parents 6fc42d3 + 0a7c58b commit 050cf9e
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 3 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Build and Deploy

on:
push:
branches:
- voici
- main

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install mamba
uses: mamba-org/setup-micromamba@v1
with:
environment-file: 'build-environment.yml'
init-shell: bash
- name: Build the JupyterLite site
shell: bash -l {0}
run: voici build --contents . --output-dir dist
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
path: ./dist

deploy:
needs: build
if: github.ref == 'refs/heads/main'
permissions:
pages: write
id-token: write

environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1
6 changes: 3 additions & 3 deletions build-environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: build-env
channels:
- conda-forge
dependencies:
- python
- pip
- sepal-ui
- 'python'
- 'pip'
- 'sepal-ui'
- pip:
- voici>=0.4.4,<0.5.0
- jupyterlite-xeus-python>=0.8.1,<0.9.0

0 comments on commit 050cf9e

Please sign in to comment.