Skip to content

Commit

Permalink
ci: fix build step
Browse files Browse the repository at this point in the history
  • Loading branch information
ali-hosseini-deriv committed Jan 8, 2024
1 parent 92beffc commit e2d07d8
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 23 deletions.
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

0 comments on commit e2d07d8

Please sign in to comment.