2025-01-26 16:34:19 +01:00
|
|
|
name: Main
|
2025-01-26 11:34:47 +01:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
jobs:
|
|
|
|
build-deploy:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
permissions:
|
|
|
|
contents: write
|
|
|
|
id-token: write
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: actions/setup-node@v4
|
|
|
|
with:
|
|
|
|
node-version: 22
|
|
|
|
registry-url: 'https://registry.npmjs.org'
|
|
|
|
|
|
|
|
- run: npm install
|
|
|
|
- run: npm run build
|
|
|
|
# - run: npm run create:ast
|
2025-01-26 11:38:35 +01:00
|
|
|
- run: apt-get update && apt-get install -y rsync
|
2025-01-26 11:34:47 +01:00
|
|
|
- name: Create private key
|
|
|
|
run: |
|
|
|
|
echo "${{ secrets.ACT_RUNNER_KEY }}" > /tmp/act_runner_key
|
|
|
|
chmod 600 /tmp/act_runner_key
|
|
|
|
- name: rsync public directory
|
|
|
|
run: |
|
|
|
|
/usr/bin/rsync -avz --delete -e "ssh -i /tmp/act_runner_key -o StrictHostKeyChecking=no" ${{ gitea.workspace }}/dist/* root@vps03.hadan-it.com:/data/webspace/techstack.hadan.de/
|
|
|
|
- run: echo "This job's status is ${{ job.status }}."
|
|
|
|
|
|
|
|
|