-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
Showing
2 changed files
with
28 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file was deleted.
Oops, something went wrong.