Skip to content

Commit

Permalink
Update workflow
Browse files Browse the repository at this point in the history
remove cache dir

remove cache

FIX loop over folders

FIX folder name

add pwd

fix mv

more workflow fixes

asd

rename workflow

typo

fix paths

asd
  • Loading branch information
koeppel committed May 10, 2024
1 parent f7e7deb commit 139f5bb
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 37 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/deploy-pages.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
on:
push:
branches:
- main
jobs:
deploy-pages:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4

- name: Install and build examples
run: |
mkdir gh-pages
zip -r gh-pages/p13n.tutorial.zip exercises/ex01/sample.p13n
for dir in exercises/ex*; do
mkdir -p gh-pages/"$dir"/sample.p13n
cd "$dir"/sample.p13n
npm install
npm run build
mv dist ../../../gh-pages/"$dir"/sample.p13n
cd ../../..
done
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: gh-pages
37 changes: 0 additions & 37 deletions .github/workflows/on-commit.yaml

This file was deleted.

0 comments on commit 139f5bb

Please sign in to comment.