Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enabling Scheduled posts in blog #13718

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions .github/workflows/build-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,12 @@ on:
push:
branches:
- master
schedule:
# Run at 6 AM Eastern (11:00 UTC)
- cron: '0 11 * * *'
permissions:
id-token: write # This is required for requesting the JWT
contents: read # This is required for actions/checkout
id-token: write # This is required for requesting the JWT
contents: read # This is required for actions/checkout
jobs:
buildSite:
env:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ The `Makefile` exposes a number of useful helpers for authoring:
* `make ensure` resolves and installs all dependencies
* `make lint` checks all Markdown files for correctness
* `make format` formats all applicable files to ensure they conform to style guidelines
* `make serve` runs the Hugo server locally at http://localhost:1313 and watches for changes
* `make serve` runs the Hugo server locally at http://localhost:1313 and watches for changes. You can set `BUILD_FUTURE=false` to simulate production behavior by excluding future-dated content (e.g., `BUILD_FUTURE=false make serve`)
* `make serve-all` does the same as `make serve`, but also watches for changes to CSS and JS source files
* `make build` generates the website and writes it to `./public`
* `make build-assets` builds only the CSS and JavaScript asset bundles
Expand Down
2 changes: 1 addition & 1 deletion scripts/build-site.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ else
export HUGO_BASEURL="https://www.pulumi-test.io"
GOGC=3 hugo --minify --buildFuture --templateMetrics -e "preview"
else
GOGC=3 hugo --minify --buildFuture --templateMetrics -e "production"
GOGC=3 hugo --minify --templateMetrics -e "production"
fi
fi

Expand Down
8 changes: 7 additions & 1 deletion scripts/serve.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,10 @@ export REL_JS_BUNDLE="/js/bundle.min.${ASSET_BUNDLE_ID}.js"
# URL to the Pulumi conversion service.
export PULUMI_CONVERT_URL="${PULUMI_CONVERT_URL:-$(pulumi stack output --stack pulumi/tf2pulumi-service/production url)}"

HUGO_BASEURL=http://localhost:1313 hugo server --renderToMemory --disableFastRender --buildDrafts --buildFuture
# Default to building future content unless explicitly disabled
BUILD_FUTURE_FLAG="--buildFuture"
if [ "${BUILD_FUTURE:-true}" = "false" ]; then
BUILD_FUTURE_FLAG=""
fi

HUGO_BASEURL=http://localhost:1313 hugo server --renderToMemory --disableFastRender --buildDrafts ${BUILD_FUTURE_FLAG}
Loading