-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
31cab3b
commit 7c63e16
Showing
1 changed file
with
11 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,9 +14,14 @@ jobs: | |
- 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*" | ||
- name: Upload Archive as Artifact | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: repo-archive-with-hash | ||
path: archive_with_hash.zip | ||
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 |