24 lines
No EOL
543 B
YAML
24 lines
No EOL
543 B
YAML
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/. |