From 304de71d637efd8cf83a2e48368cc40d6aa0d001 Mon Sep 17 00:00:00 2001 From: "K.B.Dharun Krishna" Date: Wed, 9 Oct 2024 12:53:50 +0530 Subject: [PATCH] feat: update managing spaces with GitHub actions page --- docs/hub/spaces-github-actions.md | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/docs/hub/spaces-github-actions.md b/docs/hub/spaces-github-actions.md index 8995c36bb..80edab33e 100644 --- a/docs/hub/spaces-github-actions.md +++ b/docs/hub/spaces-github-actions.md @@ -1,4 +1,4 @@ -# Managing Spaces with Github Actions +# Managing Spaces with GitHub Actions You can keep your app in sync with your GitHub repository with **Github Actions**. Remember that for files larger than 10MB, Spaces requires Git-LFS. If you don't want to use Git-LFS, you may need to review your files and check your history. Use a tool like [BFG Repo-Cleaner](https://rtyley.github.io/bfg-repo-cleaner/) to remove any large files from your history. BFG Repo-Cleaner will keep a local copy of your repository as a backup. @@ -32,10 +32,11 @@ jobs: sync-to-hub: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 0 lfs: true + - name: Push to hub env: HF_TOKEN: ${{ secrets.HF_TOKEN }} @@ -58,8 +59,13 @@ jobs: sync-to-hub: runs-on: ubuntu-latest steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + lfs: true + - name: Check large files - uses: ActionsDesk/lfs-warning@v2.0 + uses: ActionsDesk/lfs-warning@v3.3 with: filesizelimit: 10485760 # this is 10MB so we can sync to HF Spaces ```