diff --git a/.gitea/workflows/ci-cd.yaml b/.gitea/workflows/ci-cd.yaml index ee74c48..83ed159 100644 --- a/.gitea/workflows/ci-cd.yaml +++ b/.gitea/workflows/ci-cd.yaml @@ -158,9 +158,9 @@ jobs: echo "DLC_DATABASE_NAME=dance_lessons_coach_bdd_test" >> $GITHUB_ENV echo "DLC_DATABASE_SSL_MODE=disable" >> $GITHUB_ENV - - name: Cache Swagger Docs - id: cache-swagger - uses: actions/cache@v3 + - name: Restore Swagger Docs Cache + id: cache-swagger-restore + uses: actions/cache/restore@v3 with: path: | pkg/server/docs/docs.go @@ -171,9 +171,19 @@ jobs: swagger-docs- - name: Generate Swagger Docs - if: steps.cache-swagger.outputs.cache-hit != 'true' + if: steps.cache-swagger-restore.outputs.cache-hit != 'true' run: go generate ./pkg/server + - name: Save Swagger Docs Cache + id: cache-swagger-save + uses: actions/cache/save@v3 + with: + path: | + pkg/server/docs/docs.go + pkg/server/docs/swagger.json + pkg/server/docs/swagger.yaml + key: ${{ steps.cache-swagger-restore.outputs.cache-primary-key }} + - name: Build all packages run: go build ./...