Use CDN source for theme #6
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
name: build | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- source/** | |
- .github/workflows/build.yml | |
concurrency: build-${{ github.ref }} | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Install & build projects | |
run: | | |
mkdir dist | |
for project in $(cd source && ls -d */); do | |
pushd source/$project | |
npm install | |
npm run build | |
popd | |
cp -r source/$project/dist dist/$project | |
done | |
- name: Deploy main | |
uses: JamesIves/github-pages-deploy-action@v4 | |
with: | |
branch: gh-pages | |
folder: dist | |
clean-exclude: pr-preview/ |