This commit is contained in:
2025-09-01 16:26:26 +02:00
parent 480ff06731
commit 57fe16f9ce

View File

@@ -1,5 +1,5 @@
name: Deploy Documentation Local name: Deploy Documentation Local
run-name: Deploying ${{ gitea.repository }} docs locally run-name: Deploying ${{ vars.GIT_REPOSITORY }} docs locally
on: on:
push: push:
@@ -13,15 +13,6 @@ jobs:
deploy-docs: deploy-docs:
runs-on: windows # Ejecutar directamente en el host Windows runs-on: windows # Ejecutar directamente en el host Windows
steps: steps:
- name: Obtener solo el nombre del repositorio
run: echo "${GITHUB_REPOSITORY##*/}"
- name: Get project name
shell: powershell
run: |
$projectName = "${{ gitea.repository_name }}"
echo "Project Name: $projectName"
- name: Check out repository code - name: Check out repository code
uses: actions/checkout@v4 uses: actions/checkout@v4
@@ -42,9 +33,7 @@ jobs:
- name: Deploy to IIS directory - name: Deploy to IIS directory
shell: powershell shell: powershell
run: | run: |
$projectName = "${{ gitea.repository_name }}" $projectName = "${{ vars.GIT_REPOSITORY }}"
echo "Project Name: $projectName"
$basePath = Join-Path "${{ secrets.DEPLOY_BASE_PATH }}" "dev" $basePath = Join-Path "${{ secrets.DEPLOY_BASE_PATH }}" "dev"
$targetPath = Join-Path $basePath $projectName $targetPath = Join-Path $basePath $projectName