diff --git a/.github/workflows/pipeline.yml b/.github/workflows/pipeline.yml index 4ad3fae..206221c 100644 --- a/.github/workflows/pipeline.yml +++ b/.github/workflows/pipeline.yml @@ -19,13 +19,13 @@ jobs: run: | git config user.name "github-actions" git config user.email "github-actions@github.com" - - name: Create new local branch - run: git checkout -b temp-zip-branch - - - name: Remove all files except the ZIP + - name: Create orphan branch for ZIP archive run: | + git checkout --orphan zip-archive + git rm -rf . + git clean -fdx git add archive_with_hash.zip git commit -m "Update ZIP archive with latest commit hash" - - name: Force push to zip-archive branch - run: git push origin temp-zip-branch:zip-archive --force + - name: Force push to remote zip-archive branch + run: git push origin zip-archive --force