parent
108cf60e0c
commit
58ce75b38a
114 changed files with 966 additions and 17255 deletions
24
.forgejo/workflows/deploy.yml
Normal file
24
.forgejo/workflows/deploy.yml
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
on: [push]
|
||||
jobs:
|
||||
print-content:
|
||||
runs-on: native
|
||||
steps:
|
||||
- name: Run uname
|
||||
run: uname -a
|
||||
- name: checkout code
|
||||
uses: actions/checkout@v4
|
||||
- name: Build
|
||||
run: |
|
||||
source /etc/bashrc
|
||||
|
||||
nix shell nixpkgs#bun nixpkgs#rsync
|
||||
|
||||
bun i
|
||||
bun run build
|
||||
|
||||
echo "${{ secrets.SSH_KEY }}" > ssh_key
|
||||
chmod 600 ssh_key
|
||||
eval "$(ssh-agent -s)"
|
||||
ssh-add ssh_key
|
||||
|
||||
rsync -avz --delete dist/* imnyang@10.11.8.101:/var/static/imnya.ng/.
|
||||
Loading…
Add table
Add a link
Reference in a new issue