I'm trying to write a GitHub Actions workflow which can zip up my entire repository. I have written it as such:
name: Zip repository and put on S3
on: [workflow_dispatch]
jobs:
zip-n-push:
name: Zip and Push
runs-on: ubuntu-latest
steps:
- name: Zip Folder
run: |
rm -rf <repository_name>.zip
zip -r <repository_name>.zip <repository_name> -x ".git/*" ".github/*"
Upon running it, I get an error saying:
zip error: Nothing to do! (<repository_name>.zip).
Am I doing something wrong? What should I change here? Thanks in advance.
I expect this action to create a .zip file of my repository. I intend to send that zip file to an AWS S3 bucket, but I need to clear this roadblock first.