Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added deploy-to-vps.yml #56

Merged
merged 6 commits into from
Sep 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions .github/workflows/deploy-to-vps.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Build & deploy in VPS

on:
push:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Deploy using ssh
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.PRIVATE_KEY }}
port: 22
script: |
cd ~/website
git pull origin main
yarn install
yarn build
if [ $? -ne 0 ]; then
echo "Build failed"
exit 1
fi
pm2 restart .
2 changes: 1 addition & 1 deletion
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2023 kuosc2005
Copyright (c) 2024 kuosc2005

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ function HomepageHeader() {
Open School
</Link>
<Link className="button button--secondary button--lg" to="https://sfd.kuosc.org.np/">
SFD 2023
SFD 2024
</Link>
</div>
</div>
Expand Down
Loading