Skip to content

Commit

Permalink
added github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
aziis98 committed Nov 3, 2024
1 parent a624f42 commit 5d6bec1
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/deploy-poisson.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Deploy to Poisson
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@4
- name: Write SSH keys
run: |
install -m 600 -D /dev/null ~/.ssh/id_ed25519_github
echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_ed25519_github
ssh-keyscan -H poisson.phc.dm.unipi.it > ~/.ssh/known_hosts
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: '23'
- name: Install dependencies
run: npm install
- name: Build
run: npm run build:poisson
- name: Deploy
run: rsync -avz out/ delucreziis@poisson.phc.dm.unipi.it:public_html/

0 comments on commit 5d6bec1

Please sign in to comment.