Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
torbjornbp authored Dec 8, 2024
1 parent 1c4aa99 commit 8bc13cd
Showing 1 changed file with 16 additions and 10 deletions.
26 changes: 16 additions & 10 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,30 @@
name: Scaleway builder/deployer

on:
push:
branches: [ "main" ]

jobs:
build_and_deploy:
name: Deploy Hugo Website
runs-on: ubuntu-latest
env:
HUGO_VERSION: 0.138.0
steps:
- uses: actions/checkout@v3
- name: Install Hugo CLI
run: |
wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_withdeploy_${HUGO_VERSION}_linux-amd64.deb \
&& sudo dpkg -i ${{ runner.temp }}/hugo.deb
- name: Install Dart Sass
run: sudo snap install dart-sass
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- name: setup hugo
uses: peaceiris/actions-hugo@v2.6.0
with:
hugo-version: '0.138.0'
- name: build site
run: hugo
- name: deploy to scaleway
- name: Build site
env:
HUGO_ENVIRONMENT: production
HUGO_ENV: production
run: hugo --minify
- name: Deploy to scaleway
run: hugo deploy --force --maxDeletes -1
env:
AWS_ACCESS_KEY_ID: ${{ secrets.SCW_ACCESS_KEY_ID }}
Expand Down

0 comments on commit 8bc13cd

Please sign in to comment.