generated from Seekra/repository-template
chore(cd): checkout LFS in deployment workflow
The production deployment workflow now installs Git LFS and checkouts LFS objects.
This commit is contained in:
@@ -33,6 +33,19 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Install Git LFS
|
||||
- run: |
|
||||
apt-get update
|
||||
apt-get install -y git-lfs
|
||||
|
||||
- name: Checkout LFS
|
||||
run: |
|
||||
git lfs install --local
|
||||
AUTH=$(git config --local http.${{ gitea.server_url }}/.extraheader)
|
||||
git config --local --unset http.${{ gitea.server_url }}/.extraheader
|
||||
git config --local http.${{ gitea.server_url }}/${{ gitea.repository }}.git/info/lfs/objects/batch.extraheader "$AUTH"
|
||||
git lfs pull
|
||||
|
||||
- name: Set alias
|
||||
run: |
|
||||
mc alias set minio "${{ vars.S3_PROD_URL }}" "${{ secrets.S3_PROD_ACCESS_KEY }}" "${{ secrets.S3_PROD_SECRET_KEY }}"
|
||||
|
||||
Reference in New Issue
Block a user