You've already forked Mottashaw-Consulting
Merge branch 'main' of https://git.adcmnetworks.co.uk/ADCM-Networks/Mottashaw-Consulting.git
* 'main' of https://git.adcmnetworks.co.uk/ADCM-Networks/Mottashaw-Consulting.git: Update .gitea/workflows/publish.yaml Add .gitea/workflows/publish.yaml
This commit is contained in:
33
.gitea/workflows/publish.yaml
Normal file
33
.gitea/workflows/publish.yaml
Normal file
@@ -0,0 +1,33 @@
|
||||
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 }}
|
||||
passphrase: ${{ secrets.KEY_PASSWORD }}
|
||||
port: 22
|
||||
uploads: |
|
||||
${{ vars.GIT_FOLDER }} => ${{ vars.SSH_FOLDER }}
|
||||
delete: 'true'
|
||||
ignore: |
|
||||
*.git
|
||||
*/**/*git*
|
||||
Reference in New Issue
Block a user