Skip to content

Update gh-pages.yml #109

Update gh-pages.yml

Update gh-pages.yml #109

Workflow file for this run

name: Make Modern.TiddlyDev Template
on:
push:
branches:
- master
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Clear
run: |
mkdir /tmp/moderntiddlydev
cp -r * /tmp/moderntiddlydev/
find . -maxdepth 1 ! -name .git -exec cp -r -t /tmp/moderntiddlydev/ {} +
mv /tmp/moderntiddlydev upload
rm -rf upload/.git upload/README.md upload/pnpm-lock.yaml upload/src/doc upload/.github/workflows/make-template.yml
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 18
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 'latest'
run_install: false
- name: Cache dependencies
uses: actions/cache@v3
with:
path: |
**/node_modules
~/.pnpm-store
~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
${{ runner.os }}-node-
- name: Install Dependencies
run: pnpm install
- name: Build Plugins
run: |
pnpm run build
cp dist/\$__plugins_Modern.TiddlyDev_doc.json upload/wiki/tiddlers/
- name: Deploy
uses: s0/git-publish-subdir-action@develop
env:
REPO: self
BRANCH: template
FOLDER: upload
SQUASH_HISTORY: true
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}