Skip to content

Commit

Permalink
Reclaim some storage space to build docs
Browse files Browse the repository at this point in the history
  • Loading branch information
ashao committed Feb 26, 2024
1 parent 39354db commit 26e0161
Showing 1 changed file with 24 additions and 14 deletions.
38 changes: 24 additions & 14 deletions .github/workflows/build_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,25 @@ name: deploy_dev_docs

on:
push:
branches:
- develop

jobs:
build_docs:
name: build_dev_docs
runs-on: ubuntu-latest

steps:

# Maximize the space in this image
- name: Maximize build space
uses: easimon/maximize-build-space@master
with:
root-reserve-mb: 30720
remove-dotnet: true
remove-android: true
remove-haskell: true
remove-codeql: true
remove-docker-images: true

- uses: actions/checkout@v4
with:
fetch-depth: 0 # otherwise, there would be errors pushing refs to the destination repository.
Expand All @@ -58,15 +68,15 @@ jobs:
- name: Build documentation with docker
run: make docks

- name: Commit files
run: |
git add -Af
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git commit -m "Update develop documentation"
- uses: ad-m/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: doc
force: true
# - name: Commit files
# run: |
# git add -Af
# git config --local user.email "[email protected]"
# git config --local user.name "GitHub Action"
# git commit -m "Update develop documentation"
#
# - uses: ad-m/[email protected]
# with:
# github_token: ${{ secrets.GITHUB_TOKEN }}
# branch: doc
# force: true

0 comments on commit 26e0161

Please sign in to comment.