You've already forked CS-Box
Compare commits
16 Commits
main
...
6b2e073c6b
| Author | SHA1 | Date | |
|---|---|---|---|
| 6b2e073c6b | |||
| db1fc8590b | |||
| f9f4db2af1 | |||
| 093e7b8c37 | |||
| 3aba6b3369 | |||
| a83966f7d5 | |||
| 1a86409b69 | |||
| 4b11e6cf1a | |||
| a1b83f28f0 | |||
| e7443b8ef1 | |||
| 38eceae130 | |||
| 376bc96f4f | |||
| d9ee26ec8c | |||
| 7565cf57f1 | |||
| 9b916876a2 | |||
| 2670489e33 |
32
.gitea/workflows/publish.yaml
Normal file
32
.gitea/workflows/publish.yaml
Normal 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*
|
||||
Reference in New Issue
Block a user