Skip to content

Commit

Permalink
Try gh pages
Browse files Browse the repository at this point in the history
  • Loading branch information
carlotm committed Jan 12, 2024
1 parent 1b837bd commit ff257f4
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 4 deletions.
24 changes: 22 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,32 @@ on:
pull_request:
branches: [main]

permissions:
contents: read
pages: write
id-token: write

jobs:
test:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Checkout code
uses: actions/checkout@v4
- name: Configure pages
uses: actions/configure-pages@v4
- name: Install devbox
uses: jetpack-io/devbox-install-action@v0.7.0
- name: Build app
run: devbox run make clean all
- name: Upload artifacts
uses: actions/upload-pages-artifact@v3
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
elm-stuff
public
_site
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
public_dir = $(abspath ./public)
public_dir = $(abspath ./_site)

.PHONY: all clean

Expand Down

0 comments on commit ff257f4

Please sign in to comment.