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

Ako/ fix build step #191

Merged
merged 1 commit into from
Jan 8, 2024
Merged
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
18 changes: 3 additions & 15 deletions .github/actions/build_jekyll_site/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,6 @@ description: "Build Jekyll site"
runs:
using: composite
steps:
- restore_cache:
name: "Build cache restore"
keys:
- _site-v1-{{ .Revision }}
- _site-v1-
- build_site:
name: Building Jekyll site
run: |
bundle exec jekyll build --incremental
- save_cache:
name: Build cache save
key: _site-v1-{{ .Revision }}
with:
paths:
- _site
- name: Building Jekyll site
shell: bash
run: bundle exec jekyll build --incremental
9 changes: 3 additions & 6 deletions .github/actions/versioning/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,10 @@ inputs:
RELEASE_TYPE:
description: Release Type
required: false
outputs:
version:
description: Version

runs:
using: composite
steps:
- run:
name: Tag build
run: echo "${GITHUB_REF#refs/heads/} $(date -u +'%Y-%m-%dT%H:%M:%SZ')" > _site/version
- name: Tag build
run: echo "${GITHUB_REF#refs/heads/} $(date -u +'%Y-%m-%dT%H:%M:%SZ')" > _site/version
shell: bash
2 changes: 1 addition & 1 deletion .github/workflows/release-production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Bundle Install
uses: ./.github/actions/bundle_install
- name: Build Jekyll site
uses: ./.github/actions/build
uses: ./.github/actions/build_jekyll_site
- name: invalidate master cache
uses: ./.github/actions/invalidate_master_cache
- name: Versioning
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Bundle Install
uses: ./.github/actions/bundle_install
- name: Build Jekyll site
uses: ./.github/actions/build
uses: ./.github/actions/build_jekyll_site
- name: Versioning
uses: ./.github/actions/versioning
with:
Expand Down
Loading