From 84041d2f7211a81b0a3f521ba537fefc45914292 Mon Sep 17 00:00:00 2001 From: Angoosh Date: Tue, 15 Jul 2025 10:22:23 +0200 Subject: [PATCH 1/2] added action --- .gitea/workflows/site.yaml | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .gitea/workflows/site.yaml diff --git a/.gitea/workflows/site.yaml b/.gitea/workflows/site.yaml new file mode 100644 index 0000000..fc9232b --- /dev/null +++ b/.gitea/workflows/site.yaml @@ -0,0 +1,38 @@ +name: Modelari site build and deploy +run-name: ${{ gitea.actor }} +on: [push] + +jobs: + Build-site: + runs-on: ubuntu-latest-ubuntu + steps: + - name: Check out repository code + uses: actions/checkout@v4 + - name: Copy html files to server + uses: appleboy/scp-action@v0.1.7 + with: + host: ${{ secrets.WALTER }} + username: ${{ secrets.WALTER_USERNAME }} + key: ${{ secrets.WALTER_SSH_KEY }} + port: 22 + source: "*.html" + target: "/opt/infra/modelari/web/site/" + - name: Copy image files to server + uses: appleboy/scp-action@v0.1.7 + with: + host: ${{ secrets.WALTER }} + username: ${{ secrets.WALTER_USERNAME }} + key: ${{ secrets.WALTER_SSH_KEY }} + port: 22 + source: "img/*" + target: "/opt/infra/modelari/web/site/" + - name: Copy css files to server + uses: appleboy/scp-action@v0.1.7 + with: + host: ${{ secrets.WALTER }} + username: ${{ secrets.WALTER_USERNAME }} + key: ${{ secrets.WALTER_SSH_KEY }} + port: 22 + source: "*.css" + target: "/opt/infra/modelari/web/site/" + - run: echo "This job's status is ${{ job.status }}." From acfa97d186cf196c8d67609e18328010c24fad37 Mon Sep 17 00:00:00 2001 From: Angoosh Date: Tue, 15 Jul 2025 10:37:19 +0200 Subject: [PATCH 2/2] renamed home to index --- contacts.html | 2 +- home.html => index.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) rename home.html => index.html (95%) diff --git a/contacts.html b/contacts.html index b391b05..8536064 100644 --- a/contacts.html +++ b/contacts.html @@ -14,7 +14,7 @@