Skip to content

Commit

Permalink
Merge branch 'main' into rebrand-as-platform-engineer
Browse files Browse the repository at this point in the history
  • Loading branch information
p5 authored Mar 6, 2024
2 parents cc1c986 + 7315451 commit 88a0387
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 13 deletions.
21 changes: 9 additions & 12 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,29 +28,26 @@ jobs:
env:
HUGO_VERSION: 0.121.1
steps:
- name: Install Hugo CLI
run: |
wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb \
&& sudo dpkg -i ${{ runner.temp }}/hugo.deb
- name: Install Dart Sass Embedded
run: sudo snap install dart-sass-embedded

- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4

- name: Install devbox
uses: jetpack-io/devbox-install-action@4a7f1d5332cc72057d5e8080edebfcdf652e642e # v0.8.0
with:
enable-cache: true

- name: Setup Pages
id: pages
uses: actions/configure-pages@1f0c5cde4bc74cd7e1254d0cb4de8d49e9068c7d # v4

- name: Build with Hugo
- name: Build
env:
HUGO_ENVIRONMENT: production
HUGO_ENV: production
run: |
hugo \
--minify \
--baseURL "${{ steps.pages.outputs.base_url }}/"
devbox run -- hugo \
--baseURL "${{ steps.pages.outputs.base_url }}/" \
--minify
- name: Upload artifact
uses: actions/upload-pages-artifact@56afc609e74202658d3ffba0e8f6dda462b719fa # v3
Expand Down
21 changes: 21 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Test

on:
pull_request:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2

- name: Install devbox
uses: jetpack-io/devbox-install-action@4a7f1d5332cc72057d5e8080edebfcdf652e642e # v0.8.0
with:
enable-cache: true

- name: Build
run: devbox run -- hugo
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# IDEs
# Development Tools
.vscode/
.idea/
devbox.lock

# Build outputs
public/
Expand Down
10 changes: 10 additions & 0 deletions devbox.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"packages": ["[email protected]"],
"shell": {
"scripts": {
"dev": [
"hugo server"
]
}
}
}

0 comments on commit 88a0387

Please sign in to comment.