We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7ef6ec2 commit 00f33e9Copy full SHA for 00f33e9
.github/workflows/deploy-website.yml
@@ -0,0 +1,26 @@
1
+name: Deploy the scratchattach website
2
+
3
+on:
4
+ push:
5
+ branches:
6
+ - main # ✅ only run on this branch
7
+ paths:
8
+ - 'website/**'
9
+ workflow_dispatch:
10
11
+jobs:
12
+ deploy:
13
+ runs-on: ubuntu-latest
14
+ steps:
15
+ - name: Checkout repository
16
+ uses: actions/checkout@v4
17
+ - name: Move website directory
18
+ run: |
19
+ git checkout main
20
+ git worktree add /tmp/website website
21
+ cd /tmp/website
22
+ rm -rf *
23
+ cp -r ../../website/* .
24
+ git add --all
25
+ git commit -m "Deploy mydir contents to website"
26
+ git push origin website --force
0 commit comments