Skip to content

Commit

Permalink
Update deploy workflow and Hugo to version 0.116.1
Browse files Browse the repository at this point in the history
  • Loading branch information
martignoni committed Aug 21, 2023
1 parent 3d5865f commit db0b9b7
Showing 1 changed file with 6 additions and 17 deletions.
23 changes: 6 additions & 17 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,33 +11,22 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v3.5.3
with:
submodules: true
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
uses: peaceiris/actions-hugo@v2.6.0
with:
hugo-version: ${{ env.HUGO_RELEASE }}
extended: true
env:
HUGO_RELEASE: '0.111.3'
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: '14'
- name: Cache dependencies
uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Run Node
run: npm ci
HUGO_RELEASE: '0.116.1'
- name: Check Hugo installation
run: hugo env
- name: Build website with Hugo
run: hugo --minify --printI18nWarnings
- name: Deploy website with rsync
uses: burnett01/rsync-deployments@5.2
uses: burnett01/rsync-deployments@6.0.0
with:
switches: -avzr --quiet --delete
path: public/
Expand Down

0 comments on commit db0b9b7

Please sign in to comment.