Compare commits

...

6 Commits

Author SHA1 Message Date
rottenwheel
c87755b659
Merge pull request #8 from recanman/patch-2
Some checks failed
Deploy latest site / deploy (push) Has been cancelled
Update deploy.yml
2024-10-07 03:38:34 +00:00
recanman
04a8772f9b
Update deploy.yml 2024-10-07 03:37:59 +00:00
rottenwheel
16ec65755a
Merge pull request #7 from recanman/patch-1
Update deploy.yml
2024-10-07 03:31:51 +00:00
recanman
49062cfa32
Update deploy.yml 2024-10-07 03:30:10 +00:00
rottenwheel
e2705c1e45
readme: remove redundant title line 2024-10-07 01:43:02 +00:00
rottenwheel
f543926a0a
testing: remove redundant title line 2024-10-07 01:36:45 +00:00
3 changed files with 13 additions and 21 deletions

View File

@ -1,4 +1,4 @@
name: Build and Deploy Hugo Site
name: Deploy latest site
on:
push:
@ -6,24 +6,20 @@ on:
- main
jobs:
build:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Checkout code
uses: actions/checkout@v2
- name: Setup Hugo
uses: peaceiris/actions-hugo@v3
with:
hugo-version: 'latest'
- name: Setup SSH
run: |
mkdir -p ~/.ssh
echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id
chmod 600 ~/.ssh/id
echo "${{ secrets.SERVER_FINGERPRINT }}" >> ~/.ssh/known_hosts
- name: Build
run: hugo --minify
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public
publish_branch: pages
- name: Run rotten-build command
run: |
ssh -i ~/.ssh/id -o StrictHostKeyChecking=yes ${{ secrets.SSH_USERNAME }}@${{ secrets.SERVER_ADDRESS }} "sudo rotten-build"

View File

@ -55,8 +55,6 @@ The generated site will be in the `public/` directory.
date: 2024-07-15
---
# My New Post
This is the content of my new post.
```

View File

@ -3,6 +3,4 @@ title: "testing"
date: 2024-10-05
---
# testing
Check, check... *1... 2... 3...* Over.