Skip to content

.github/workflows/main.yml #15

.github/workflows/main.yml

.github/workflows/main.yml #15

Workflow file for this run

on:
workflow_dispatch:
push:
branches:
- main
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "20.x"
- run: corepack enable
- run: yarn install
- uses: actions/checkout@v4
with:
repository: henrycatalinismith/henrycatalinismith.github.io
sparse-checkout: |
tailbone/index.html
path: _root
- run: mv _root/tailbone _site/
- run: yarn build
- uses: peaceiris/actions-gh-pages@v3
with:
exclude_assets: ".github,.gitignore,.npmrc,Assets.xcassets,Info.plist,Launch Screen.storyboard,Preview Assets.xcassets,Tailbone.xcodeproj,TailboneApp.swift,_headers,manifest.webmanifest,media,netlify.toml,node_modules,package.json,readme.md,yarn.lock"
force_orphan: true
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: gh-pages
publish_dir: ./_site