Skip to content

Commit

Permalink
actions: change webroot
Browse files Browse the repository at this point in the history
  • Loading branch information
noxilixon committed Jul 16, 2024
1 parent 8f67c80 commit 4767c56
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/deploy-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,17 +30,17 @@ jobs:
HUGO_MATRIX_HOME_SERVER: ${{ secrets.HUGO_MATRIX_HOME_SERVER }}
HUGO_GITHUB_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
URL_DEVELOPMENT: ${{ vars.URL_DEVELOPMENT }}
run: hugo --minify -b "$URL_DEVELOPMENT/$GITHUB_REF_NAME" --destination "branch/$GITHUB_REF_NAME"
run: hugo --minify -b "$URL_DEVELOPMENT/$GITHUB_REF_NAME" --destination "$URL_DEVELOPMENT/$GITHUB_REF_NAME"

- name: Create robots.txt
run: 'echo -e "User-agent: *\nDisallow: /" > branch/robots.txt'
run: 'echo -e "User-agent: *\nDisallow: /" > $URL_DEVELOPMENT/robots.txt'

- name: Deploy
uses: appleboy/scp-action@master
with:
host: ${{ vars.IP_DEVELOPMENT }}
username: ${{ secrets.SSH_USERNAME_DEVELOPMENT }}
key: ${{ secrets.SSH_KEY_DEVELOPMENT }}
source: "branch/${{ github.ref_name }}"
source: "${{ vars.URL_DEVELOPMENT }}/${{ github.ref_name }}"
target: ${{ vars.WEBROOT_DEVELOPMENT}}
strip_components: 1
rm: true

0 comments on commit 4767c56

Please sign in to comment.