fix: comment test notification #917
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: TSKPL Template | |
on: | |
push: | |
branches: | |
- main | |
concurrency: | |
group: make-template | |
cancel-in-progress: false | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Clear | |
run: | | |
mkdir /tmp/TSKPL | |
cp -r * /tmp/TSKPL | |
find . -maxdepth 1 ! -name .git -exec cp -r -t /tmp/TSKPL/ {} + | |
mv /tmp/TSKPL upload | |
rm -rf upload/.git upload/.github upload/dev upload/templates upload/packages/create-neotw-app/ upload/packages/create-tw-apps upload/tiddlers | |
- name: Install Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
- name: Setup pnpm | |
uses: pnpm/action-setup@v2 | |
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: Deploy | |
uses: s0/git-publish-subdir-action@develop | |
env: | |
REPO: self | |
BRANCH: template | |
FOLDER: upload | |
SQUASH_HISTORY: true | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |