ci: publish
Build and Deploy / Build and Upload (push) Successful in 1m23s
Build and Deploy / upload (push) Failing after 12s

This commit is contained in:
redglow
2026-06-22 12:11:21 +02:00
parent bee21cffba
commit 7ad5e5082b
+25 -1
View File
@@ -8,7 +8,7 @@ on:
jobs:
build:
name: Build
name: Build and Upload
steps:
- name: Checkout Source Code
uses: actions/checkout@v4
@@ -27,6 +27,7 @@ jobs:
- name: Publish artifacts
uses: https://gitea.com/actions/gitea-upload-artifact@v4
with:
name: artifact
path: |
dist
index.html
@@ -37,3 +38,26 @@ jobs:
tsconfig.json
vite.config.json
yarn.lock
upload:
steps:
- name: Download artifacts
uses: actions/download-artifact@v8
with:
name: artifact
path: artifact
- name: Upload to server
run: |
mkdir ~/.ssh
chmod 600 ~/.ssh
echo "$SSH_KEYSCAN" > ~/.ssh/known_hosts
chmod 600 ~/.ssh/known_hosts
echo "$SSH_PRIVATE_KEY" > ~/.ssh/id_ed25519
chmod 600 ~/.ssh/id_ed25519
cd artifact
sftp owofannouncements@foxthesystem.space <<EOT
put -R . server
exit
EOT
env:
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
SSH_KEYSCAN: ${{ secrets.SSH_KEYSCAN }}