rely on environment

This commit is contained in:
vilmibm 2020-05-18 15:07:28 -05:00
parent da95cbd1bf
commit d800e3f0b6
2 changed files with 7 additions and 2 deletions

View file

@ -44,6 +44,11 @@ jobs:
token: ${{secrets.SITE_GITHUB_TOKEN}}
- name: Publish documentation site
if: "!contains(github.ref, '-')" # skip prereleases
env:
GIT_COMMITTER_NAME: cli automation
GIT_AUTHOR_NAME: cli automation
GIT_COMMITTER_EMAIL: noreply@github.com
GIT_AUTHOR_EMAIL: noreply@github.com
run: make site-publish
- name: Move project cards
if: "!contains(github.ref, '-')" # skip prereleases

View file

@ -32,7 +32,7 @@ site-docs: site
for f in site/manual/gh*.md; do sed -i.bak -e '/^### SEE ALSO/,$$d' "$$f"; done
rm -f site/manual/*.bak
git -C site add 'manual/gh*.md'
git -C site commit --author "cli automation <noreply@github.com>" -m 'update help docs' || true
git -C site commit -m 'update help docs' || true
.PHONY: site-docs
site-publish: site-docs
@ -41,6 +41,6 @@ ifndef GITHUB_REF
endif
sed -i.bak -E 's/(assign version = )".+"/\1"$(GITHUB_REF:refs/tags/v%=%)"/' site/index.html
rm -f site/index.html.bak
git -C site commit --author "cli automation <noreply@github.com>" -m '$(GITHUB_REF:refs/tags/v%=%)' index.html
git -C site commit -m '$(GITHUB_REF:refs/tags/v%=%)' index.html
git -C site push
.PHONY: site-publish