Skip to content

Commit

Permalink
Update pipeline.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminaaron committed Apr 5, 2024
1 parent 35cae31 commit eae48ea
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,4 @@ jobs:
- name: get latest commit hash
run: echo "LATEST_COMMIT_HASH=$(git rev-parse HEAD)" >> $GITHUB_ENV
- name: create commit hash file
run: echo $LATEST_COMMIT_HASH > latest_commit_hash.txt
- name: Archive Repository with Commit Hash
run: zip -r archive_with_hash.zip . -x "*.git*" -x "*.github*"
- name: Upload to zip-archive branch
run: |
git config --global user.email "[email protected]"
git config --global user.name "GitHub Actions"
git checkout --orphan temp-branch
git rm -rf .
git add -f archive_with_hash.zip
git commit -m "Upload latest zip archive"
git branch -M zip-archive
git push -fu origin zip-archive
run: echo $LATEST_COMMIT_HASH

0 comments on commit eae48ea

Please sign in to comment.