refactor: restructured action
Some checks failed
Gitea Actions Demo / Build (push) Failing after 1m14s

This commit is contained in:
2025-09-24 18:25:41 +02:00
parent 28987cdb2e
commit 77adf10d54

View File

@@ -22,17 +22,19 @@ jobs:
mkdir -p ~/.ssh/
echo "$SSH_PRIVATE_KEY" > ../private.key
sudo chmod 600 ../private.key
echo "$SSH_KNOWN_HOSTS" > ~/.ssh/known_hosts
echo "HELOO" > ../test
sudo chmod 666 ../test
scp -i ${{ github.workspace }}/../private.key -P ${{ secrets.BLOG_PORT }} ../test blog@madeio.net:/var/www/html/
ssh -i ${{ github.workspace }}/../private.key -p ${{ secrets.BLOG_PORT }} blog@madeio.net chmod 666 /var/www/html/test
echo "$SSH_KNOWN_HOSTS" > ~/.ssh/known_hosts
shell: bash
env:
SSH_PRIVATE_KEY: ${{secrets.SSH_KEY}}
SSH_KNOWN_HOSTS: ${{secrets.SSH_KNOWN_HOSTS}}
- run: |
- name: Install dependencies
run: |
cd ${{ gitea.workspace }}
- run: npm ci
- run: npm run build
npm ci
- name: Build
run: npm run build
- name: upload to web
run: |
scp -i ${{ github.workspace }}/../private.key -P ${{ secrets.BLOG_PORT }} build/* blog@madeio.net:/var/www/html/
ssh -i ${{ github.workspace }}/../private.key -p ${{ secrets.BLOG_PORT }} blog@madeio.net chmod -R 666 /var/www/html/
- run: echo "🍏 This job's status is ${{ job.status }}."