Skip to content

Commit

Permalink
ci: clone gh-branch as state
Browse files Browse the repository at this point in the history
  • Loading branch information
roslovets committed Jan 15, 2025
1 parent 7a6a74a commit 551f15c
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions .github/workflows/deploy_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,24 +30,12 @@ jobs:
run: sqlfluff lint

- name: Restore project state
id: restore-state
uses: actions/cache/restore@v4
uses: actions/checkout@v4
with:
ref: gh-pages
path: target_state
key: target_state

- run: ls -R
if: steps.restore-state.outputs.cache-hit != 'true'

- name: Compile project state
run: dbt compile --target-path target_state

- name: Store project state
uses: actions/cache/save@v4
id: cache
with:
path: target_state
key: target_state

- name: Generate docs
run: dbt docs generate
Expand Down

0 comments on commit 551f15c

Please sign in to comment.