Add deploy workflow for docs folder
This commit is contained in:
21
.gitea/workflows/deploy.yml
Normal file
21
.gitea/workflows/deploy.yml
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
name: Deploy to Website
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [main]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
deploy:
|
||||||
|
name: Deploy Pages
|
||||||
|
runs-on: windows
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Deploy docs to site directory
|
||||||
|
run: |
|
||||||
|
$source = Join-Path (Get-Location) "docs"
|
||||||
|
$dest = "C:\sites\mutual-flourishing"
|
||||||
|
if (Test-Path $dest) { Remove-Item -Recurse -Force $dest }
|
||||||
|
Copy-Item -Path $source -Destination $dest -Recurse
|
||||||
|
Write-Host "Deployed docs folder to $dest"
|
||||||
Reference in New Issue
Block a user