Skip to content

Commit

Permalink
ci: deploy pages
Browse files Browse the repository at this point in the history
Signed-off-by: Guillaume Hivert <[email protected]>
  • Loading branch information
ghivert committed May 20, 2024
1 parent 2c429f1 commit 582d2d9
Showing 1 changed file with 16 additions and 6 deletions.
22 changes: 16 additions & 6 deletions .github/workflows/demo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,23 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: erlef/setup-beam@v1
- name: Checkout
uses: actions/checkout@v3
- name: Setup BEAM
uses: erlef/setup-beam@v1
with:
otp-version: "26.0.2"
gleam-version: "1.0.0"
rebar3-version: "3"
# elixir-version: "1.15.4"
- run: gleam deps download
- name: Downloading dependencies
run: gleam deps download
working-directory: e2e/demo
- run: gleam run -m lustre/dev build
- name: Build demo
run: gleam run -m lustre/dev build
working-directory: e2e/demo
- uses: actions/upload-artifacts@v4
- name: Upload artifacts
uses: actions/upload-artifacts@v4
working-directory: e2e/demo
with:
name: github-pages
Expand All @@ -39,5 +44,10 @@ jobs:
deploy:
runs-on: ubuntu-latest
needs: build
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- uses: actions/deploy-pages@v4
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4

0 comments on commit 582d2d9

Please sign in to comment.