Excluded .git files. #2
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
name: Archive Repository | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Archive Repository | |
run: | | |
tar --exclude='./.git' --exclude='./some_other_directory' -czf repo-archive.tar.gz . | |
- name: Upload Archive as Artifact | |
uses: actions/upload-artifact@v2 | |
with: | |
name: repo-archive | |
path: repo-archive.tar.gz |