From 1992b773351664f8ede205624e5c97bd3f035efa Mon Sep 17 00:00:00 2001 From: Lino Date: Tue, 28 Nov 2023 13:08:56 +0100 Subject: [PATCH] Update github workflow --- .github/workflows/deploy-dev.yml | 8 ++++---- .github/workflows/deploy-prod.yml | 12 ++++++------ 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/deploy-dev.yml b/.github/workflows/deploy-dev.yml index 7c145c4..2448372 100644 --- a/.github/workflows/deploy-dev.yml +++ b/.github/workflows/deploy-dev.yml @@ -26,13 +26,13 @@ jobs: extended: true - name: Build - run: hugo --minify -b $URL_DEVELOPMENT/$GITHUB_REF_NAME --destination dev/$GITHUB_REF_NAME + run: hugo --minify -b $URL_DEVELOPMENT/$GITHUB_REF_NAME --destination $GITHUB_REF_NAME - name: Deploy uses: appleboy/scp-action@master with: - host: ${{ secrets.PRODUCTION_SERVER }} - username: ${{ secrets.PRODUCTION_USERNAME }} - key: ${{ secrets.PRODUCTION_SSH_KEY }} + host: ${{ secrets.IP_DEVELOPMENT }} + username: ${{ secrets.SSH_USERNAME_DEVELOPMENT }} + key: ${{ secrets.SSH_KEY_DEVELOPMENT }} source: "dev/${{ github.ref.name }}" target: ${{ vars.WEBROOT_DEVELOPMENT}} \ No newline at end of file diff --git a/.github/workflows/deploy-prod.yml b/.github/workflows/deploy-prod.yml index b3f6223..2ecbdde 100644 --- a/.github/workflows/deploy-prod.yml +++ b/.github/workflows/deploy-prod.yml @@ -14,8 +14,8 @@ jobs: steps: - uses: actions/checkout@v4 with: - submodules: true # Fetch Hugo themes (true OR recursive) - fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod + submodules: true + fetch-depth: 0 - name: Setup Hugo uses: peaceiris/actions-hugo@v2 @@ -29,9 +29,9 @@ jobs: - name: Deploy uses: appleboy/scp-action@master with: - host: ${{ secrets.PRODUCTION_SERVER }} - username: ${{ secrets.PRODUCTION_USERNAME }} - key: ${{ secrets.PRODUCTION_SSH_KEY }} + host: ${{ secrets.IP_PRODUCTION }} + username: ${{ secrets.SSH_USERNAME_PRODUCTION }} + key: ${{ secrets.SSH_KEY_PRODUCTION }} source: "public/" - target: ${{ secrets.PRODUCTION_WEBROOT }} + target: ${{ secrets.WEBROOT_PRODUCTION }} strip_components: 1