You've already forked computing-box
ci(deploy): add Gitea Actions workflow for site publishing
- Add publish workflow to deploy main branch via SFTP - Configure workflow dispatch and push-to-main triggers - Use repository variables and secrets for SSH credentials - Update README logo markup for consistent sizing Signed-off-by: Alexander Davis <alex@adcm.uk>
This commit is contained in:
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 }}
|
||||||
|
password: ${{ secrets.KEY_PASSWORD }}
|
||||||
|
port: 22
|
||||||
|
uploads: |
|
||||||
|
${{ vars.GIT_FOLDER }} => ${{ vars.SSH_FOLDER }}
|
||||||
|
delete: 'false'
|
||||||
|
ignore: |
|
||||||
|
*.git
|
||||||
|
*/**/*git*
|
||||||
@@ -2,7 +2,7 @@
|
|||||||
Formerly CS:Box - An evolution of Bit:Box to incorporate different elements of the UK Computing Curriculum
|
Formerly CS:Box - An evolution of Bit:Box to incorporate different elements of the UK Computing Curriculum
|
||||||
Available at [www.computingbox.co.uk](https://www.computingbox.co.uk)
|
Available at [www.computingbox.co.uk](https://www.computingbox.co.uk)
|
||||||
|
|
||||||

|
<img src="/assets/img/ComputingBox-Logo.png" width="250px" height="250px">
|
||||||
|
|
||||||
## Upcoming Features
|
## Upcoming Features
|
||||||
### Original Bit:Box Features (October 2024)
|
### Original Bit:Box Features (October 2024)
|
||||||
|
|||||||
Reference in New Issue
Block a user