Skip to content

Deploy website

Deploy website #2

name: Deploy the scratchattach website
on:
push:
branches:
- main
paths:
- 'website/**'
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Move website directory
run: |
git checkout main
git worktree add /tmp/website --orphan website
cd /tmp/website
rm -rf *
cp -r ../../website/* .
git add --all
git commit -m "Deploy mydir contents to website"
git push origin website --force