16 Commits

Author SHA1 Message Date
6b2e073c6b Merge pull request 'fix-publish-action' (#2) from fix-publish-action into main
Some checks failed
Publish to Server / Deploy (push) Failing after 5s
Reviewed-on: #2
2025-11-08 18:32:38 +00:00
db1fc8590b Update .gitea/workflows/publish.yaml 2025-11-08 18:30:58 +00:00
f9f4db2af1 Update .gitea/workflows/publish.yaml
Signed-off-by: Alexander Lyall <alexander.lyall@adcm.uk>
2025-11-08 18:28:08 +00:00
093e7b8c37 Update .gitea/workflows/publish.yaml
Some checks failed
Publish / publish (push) Failing after 6s
2025-11-08 18:24:31 +00:00
3aba6b3369 Merge pull request 'alexander.lyall-patch-1' (#1) from alexander.lyall-patch-1 into main
Reviewed-on: #1
2025-11-08 18:23:18 +00:00
a83966f7d5 Update .gitea/workflows/publish.yaml 2025-11-08 18:22:36 +00:00
1a86409b69 Delete .gitea/workflows/test-trigger.yaml
Signed-off-by: Alexander Lyall <alexander.lyall@adcm.uk>
2025-11-08 18:19:44 +00:00
4b11e6cf1a Update .gitea/workflows/test-trigger.yaml
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 13s
2025-11-08 18:18:46 +00:00
a1b83f28f0 Update .gitea/workflows/publish.yaml 2025-11-08 18:18:23 +00:00
e7443b8ef1 Update .gitea/publish.yaml 2025-11-08 18:17:44 +00:00
38eceae130 Add .gitea/test-trigger.yaml 2025-11-08 18:17:36 +00:00
376bc96f4f Update .gitea/publish.yml 2025-11-08 18:16:46 +00:00
d9ee26ec8c Update .gitea/publish.yml 2025-11-08 18:11:38 +00:00
7565cf57f1 Update .gitea/publish.yml 2025-11-08 18:09:45 +00:00
9b916876a2 Update .gitea/publish.yml 2025-11-08 18:07:12 +00:00
2670489e33 Add .gitea/publish.yml
Signed-off-by: Alexander Lyall <alexander.lyall@adcm.uk>
2025-11-08 18:05:44 +00:00

View File

@@ -0,0 +1,32 @@
name: Publish to Server
run-name: ${{ gitea.actor }} is publishing your site using Gitea Actions 🚀
on:
workflow_dispatch:
# Trigger the workflow on push
push:
branches: [main]
# Authenticate to the the server via ssh
# and run our deployment script (sftp upload)
jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: SFTP upload
uses: Dylan700/sftp-upload-action@latest
with:
server: ${{ vars.SSH_HOST }}
username: ${{ vars.SSH_USERNAME }}
key: ${{ secrets.SSH_KEY }}
port: 22
uploads: |
${{ vars.GIT_FOLDER }} => ${{ vars.SSH_FOLDER }}
delete: 'true'
ignore: |
*.git
*/**/*git*