.github/workflows/main.yml #17
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
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 |