-
Notifications
You must be signed in to change notification settings - Fork 16
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
Showing
9 changed files
with
49 additions
and
37 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
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
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 |
---|---|---|
|
@@ -16,26 +16,32 @@ | |
name: integrationcli Github Pages Pipeline | ||
|
||
on: | ||
push: | ||
#push: | ||
# Publish semver tags as releases. | ||
tags: | ||
- v[0-9].[0-9]+.[0-9] | ||
# tags: | ||
# - v[0-9].[0-9]+.[0-9] | ||
workflow_dispatch: | ||
|
||
jobs: | ||
publish-gh-pages: | ||
name: Publish integrationcli Documentation | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Code | ||
uses: actions/checkout@v3 | ||
- uses: actions/setup-go@v3 | ||
uses: actions/checkout@1e31de5234b9f8995739874a8ce0492dc87873e2 #v4 | ||
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 #v5 | ||
with: | ||
go-version-file: './go.mod' | ||
check-latest: true | ||
- name: Push GH Pages | ||
run: | | ||
git config --global user.name "integrationcli Publish Action" | ||
git config --global user.email "[email protected]" | ||
SHORT_SHA=$(git rev-parse --short $GITHUB_SHA) | ||
git config pull.rebase false | ||
git config --global user.name "$(git log -n 1 --pretty=format:%an)" | ||
git config --global user.email "$(git log -n 1 --pretty=format:%ae)" | ||
git pull origin main --allow-unrelated-histories | ||
git checkout -b docs_$SHORT_SHA | ||
GOBIN=/tmp/ go install github.com/google/[email protected] | ||
/tmp/go-licenses csv ./cmd/integrationcli > third-party-licenses.txt || echo "Ignore warnings" | ||
|
@@ -47,4 +53,4 @@ jobs: | |
go run docs/docs.go | ||
git add --all | ||
git commit -m "Update GH Pages - $GITHUB_SHA" || echo "No Changes in docs" | ||
git push origin HEAD:refs/heads/main | ||
git push origin docs_$SHORT_SHA |
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
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
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
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
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
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
To report a security issue, please use [https://g.co/vulnz](https://g.co/vulnz). | ||
We use g.co/vulnz for our intake, and do coordination and disclosure here on | ||
GitHub (including using GitHub Security Advisory). The Google Security Team will | ||
respond within 5 working days of your report on g.co/vulnz. |