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:
@@ -17,6 +17,19 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- 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
|
- name: Set alias
|
||||||
run: |
|
run: |
|
||||||
mc alias set minio "${{ vars.S3_PROD_URL }}" "${{ secrets.S3_PROD_ACCESS_KEY }}" "${{ secrets.S3_PROD_SECRET_KEY }}"
|
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