publishing/rules: remove .gitattributes before publishing
publishing/rules: remove .gitattributes before publishing

If a staging repo has .gitattributes files containing the `export-subst`
attribute ([example](https://github.com/kubernetes/kubernetes/blob/b6c06a95d7ff262a876b95a1035eaf478a7cb961/staging/src/k8s.io/client-go/pkg/version/.gitattributes)), then git expands the specified placeholders
when git archive is used.

When a published repo is downloaded from GitHub, GitHub does a
"git archive" under the hood. This means that the placeholders get
replaced by their relevant values. This type of "git archive"
application sometimes leads to undesired values. See the example below.

- In client-go, [line 59 in `pkg/version/base.go`](https://github.com/kubernetes/kubernetes/blob/b6c06a95d7ff262a876b95a1035eaf478a7cb961/staging/src/k8s.io/client-go/pkg/version/base.go#L59)
is expanded on a git archive. This line is needed as a fallback to
inject k8s version info for client-go when this info is not provided
via ldflags during builds.

- However, when k/client-go is vendored, the line gets expanded to _the
commit of the project vendoring client-go_ -- which is not helpful at
all! This also means that the vendored client-go will now contain
different (expanded) commit shas for different projects.

- To ensure reproducibility of source, this commit helps remove
the .gitattributes files before publishing the staging repos.
Additionally, when client-go is used as a library, we don't care about
the line being expanded to inject version info so it is also safe to
remove these files.

mengqiy/kubernetes,fabriziopandini/kubernetes,kevin-wangzefeng/kubernetes,jessfraz/kubernetes,deads2k/kubernetes,jingxu97/kubernetes,jessfraz/kubernetes,mosoft521/kubernetes,zhouhaibing089/kubernetes,cblecker/kubernetes,BenTheElder/kubernetes,kubernetes/kubernetes,bparees/kubernetes,cblecker/kubernetes,mahak/kubernetes,linux-on-ibm-z/kubernetes,thockin/kubernetes,zhangmingld/kubernetes,k82cn/kubernetes,rnaveiras/kubernetes,verb/kubernetes,PiotrProkop/kubernetes,deads2k/kubernetes,dixudx/kubernetes,dims/kubernetes,gnufied/kubernetes,warmchang/kubernetes,gnufied/kubernetes,alejandroEsc/kubernetes,mengqiy/kubernetes,ii/kubernetes,k82cn/kubernetes,chestack/kubernetes,shyamjvs/kubernetes,ii/kubernetes,ravilr/kubernetes,MikeSpreitzer/kubernetes,jackfrancis/kubernetes,tengqm/kubernetes,zhangmingld/kubernetes,openshift/kubernetes,nikhita/kubernetes,tengqm/kubernetes,kevin-wangzefeng/kubernetes,ii/kubernetes,jsafrane/kubernetes,kubernetes/kubernetes,mikebrow/kubernetes,GulajavaMinistudio/kubernetes,feiskyer/kubernetes,feiskyer/kubernetes,lojies/kubernetes,cblecker/kubernetes,csrwng/kubernetes,cblecker/kubernetes,li-ang/kubernetes,jsafrane/kubernetes,verb/kubernetes,lojies/kubernetes,dixudx/kubernetes,mkumatag/kubernetes,mikebrow/kubernetes,zhangmingld/kubernetes,carlory/kubernetes,dims/kubernetes,thockin/kubernetes,matthyx/kubernetes,aledbf/kubernetes,csrwng/kubernetes,ping035627/kubernetes,MikeSpreitzer/kubernetes,linux-on-ibm-z/kubernetes,zhangmingld/kubernetes,mahak/kubernetes,verb/kubernetes,mahak/kubernetes,shyamjvs/kubernetes,ii/kubernetes,mkumatag/kubernetes,MikeSpreitzer/kubernetes,kubernetes/kubernetes,fabriziopandini/kubernetes,linux-on-ibm-z/kubernetes,dixudx/kubernetes,liggitt/kubernetes,kevin-wangzefeng/kubernetes,rrati/kubernetes,carlory/kubernetes,bparees/kubernetes,jessfraz/kubernetes,BenTheElder/kubernetes,thockin/kubernetes,soltysh/kubernetes,jingxu97/kubernetes,alejandroEsc/kubernetes,feiskyer/kubernetes,enj/kubernetes,zhouhaibing089/kubernetes,soltysh/kubernetes,zhouhaibing089/kubernetes,MikeSpreitzer/kubernetes,olivierlemasle/kubernetes,iameli/kubernetes,soltysh/kubernetes,chestack/kubernetes,thockin/kubernetes,rrati/kubernetes,GulajavaMinistudio/kubernetes,jingxu97/kubernetes,zhouhaibing089/kubernetes,nikhita/kubernetes,warmchang/kubernetes,openshift/kubernetes,rnaveiras/kubernetes,matthyx/kubernetes,ii/kubernetes,li-ang/kubernetes,ravilr/kubernetes,carlory/kubernetes,linux-on-ibm-z/kubernetes,fabriziopandini/kubernetes,soltysh/kubernetes,iameli/kubernetes,olivierlemasle/kubernetes,BenTheElder/kubernetes,verb/kubernetes,kubernetes/kubernetes,mahak/kubernetes,zhangmingld/kubernetes,fabriziopandini/kubernetes,li-ang/kubernetes,BenTheElder/kubernetes,GulajavaMinistudio/kubernetes,PiotrProkop/kubernetes,mengqiy/kubernetes,mkumatag/kubernetes,kevin-wangzefeng/kubernetes,ravilr/kubernetes,tengqm/kubernetes,matthyx/kubernetes,gnufied/kubernetes,enj/kubernetes,cblecker/kubernetes,mikebrow/kubernetes,rrati/kubernetes,mahak/kubernetes,mkumatag/kubernetes,ravilr/kubernetes,jsafrane/kubernetes,csrwng/kubernetes,openshift/kubernetes,olivierlemasle/kubernetes,dims/kubernetes,shyamjvs/kubernetes,olivierlemasle/kubernetes,jsafrane/kubernetes,mengqiy/kubernetes,ping035627/kubernetes,rrati/kubernetes,deads2k/kubernetes,matthyx/kubernetes,feiskyer/kubernetes,ping035627/kubernetes,liggitt/kubernetes,mosoft521/kubernetes,PiotrProkop/kubernetes,PiotrProkop/kubernetes,csrwng/kubernetes,ravilr/kubernetes,matthyx/kubernetes,aledbf/kubernetes,gnufied/kubernetes,jsafrane/kubernetes,linux-on-ibm-z/kubernetes,tengqm/kubernetes,enj/kubernetes,warmchang/kubernetes,bparees/kubernetes,aledbf/kubernetes,jessfraz/kubernetes,jackfrancis/kubernetes,rnaveiras/kubernetes,PiotrProkop/kubernetes,liggitt/kubernetes,dixudx/kubernetes,lojies/kubernetes,jingxu97/kubernetes,csrwng/kubernetes,dims/kubernetes,mosoft521/kubernetes,nikhita/kubernetes,alejandroEsc/kubernetes,chestack/kubernetes,jackfrancis/kubernetes,kubernetes/kubernetes,li-ang/kubernetes,enj/kubernetes,liggitt/kubernetes,fabriziopandini/kubernetes,zhangmingld/kubernetes,rnaveiras/kubernetes,BenTheElder/kubernetes,iameli/kubernetes,olivierlemasle/kubernetes,iameli/kubernetes,k82cn/kubernetes,k82cn/kubernetes,enj/kubernetes,lojies/kubernetes,jingxu97/kubernetes,soltysh/kubernetes,shyamjvs/kubernetes,bparees/kubernetes,GulajavaMinistudio/kubernetes,shyamjvs/kubernetes,mikebrow/kubernetes,feiskyer/kubernetes,deads2k/kubernetes,MikeSpreitzer/kubernetes,nikhita/kubernetes,li-ang/kubernetes,bparees/kubernetes,aledbf/kubernetes,gnufied/kubernetes,warmchang/kubernetes,lojies/kubernetes,aledbf/kubernetes,rrati/kubernetes,nikhita/kubernetes,alejandroEsc/kubernetes,openshift/kubernetes,chestack/kubernetes,dixudx/kubernetes,mosoft521/kubernetes,mengqiy/kubernetes,warmchang/kubernetes,deads2k/kubernetes,mosoft521/kubernetes,verb/kubernetes,tengqm/kubernetes,dims/kubernetes,zhouhaibing089/kubernetes,mkumatag/kubernetes,ping035627/kubernetes,iameli/kubernetes,ping035627/kubernetes,k82cn/kubernetes,kevin-wangzefeng/kubernetes,carlory/kubernetes,GulajavaMinistudio/kubernetes,chestack/kubernetes,jackfrancis/kubernetes,thockin/kubernetes,jackfrancis/kubernetes,rnaveiras/kubernetes,alejandroEsc/kubernetes,carlory/kubernetes,liggitt/kubernetes,openshift/kubernetes,jessfraz/kubernetes,mikebrow/kubernetes