You've already forked CS-Box
Compare commits
20 Commits
main
...
d3bb11e6a6
| Author | SHA1 | Date | |
|---|---|---|---|
| d3bb11e6a6 | |||
| 5996927fbb | |||
| 767b0b6cbe | |||
| 9087109efb | |||
| 6b2e073c6b | |||
| db1fc8590b | |||
| f9f4db2af1 | |||
| 093e7b8c37 | |||
| 3aba6b3369 | |||
| a83966f7d5 | |||
| 1a86409b69 | |||
| 4b11e6cf1a | |||
| a1b83f28f0 | |||
| e7443b8ef1 | |||
| 38eceae130 | |||
| 376bc96f4f | |||
| d9ee26ec8c | |||
| 7565cf57f1 | |||
| 9b916876a2 | |||
| 2670489e33 |
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: 'false'
|
||||||
|
ignore: |
|
||||||
|
*.git
|
||||||
|
*/**/*git*
|
||||||
Reference in New Issue
Block a user