Compare commits

..

No commits in common. "58e557dd796c125cebfe507ecb64f1275171a027" and "f58e7f3e5cf404145e73a8685629a8f03e511b24" have entirely different histories.

4 changed files with 80 additions and 4 deletions

39
.github/workflows/build-and-test.yml vendored Normal file
View file

@ -0,0 +1,39 @@
name: Build and Test Next.js site
on:
pull_request:
branches: [ '*' ] # Wildcard matches all branches
workflow_dispatch:
jobs:
build-and-test:
runs-on: docker
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 'latest'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
- name: Test
run: npm run test
- name: Cache Next.js build
uses: actions/cache@v3
with:
path: |
~/.npm
.next/cache
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-nextjs-

40
.github/workflows/deploy.yml vendored Normal file
View file

@ -0,0 +1,40 @@
name: Deploy site
on:
push:
branches: [ main ]
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 'latest'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
- name: Test
run: npm run test
- name: "Deploy"
uses: milanmk/actions-file-deployer@master
with:
remote-protocol: "sftp"
remote-host: ${{ secrets.SFTP_HOST }}
remote-user: ${{ secrets.SFTP_USERNAME }}
remote-password: ${{ secrets.SFTP_PASSWORD }}
remote-path: "/root/www-aaronjy-me/"

View file

@ -1,6 +1,6 @@
{
"name": "www-aaronjy-2024",
"version": "1.2.0.0",
"version": "1.1.0.5",
"private": true,
"type": "module",
"scripts": {

View file

@ -19,9 +19,6 @@ function Footer () {
</span>{', '}
<span>
<a href='mailto:me@aaronjy.me'>Send me an email</a>
</span>{', '}
<span>
<a href='https://git.aaronjy.me/aaron/aaronjy-me' target='_blank' rel='nofollow noopener noreferrer'>View site src</a>
</span>
</div>