Skip to content

Commit

Permalink
Update github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
noxilixon committed Nov 28, 2023
1 parent 22cdc77 commit 1992b77
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/deploy-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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}}
12 changes: 6 additions & 6 deletions .github/workflows/deploy-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

0 comments on commit 1992b77

Please sign in to comment.