Upload artifacts of CLI with docs generation support #3
Workflow file for this run
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: 'upload docs cli artifact' | |
on: | |
pull_request: | |
push: | |
branches: | |
- gen_docs | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-go@v4 | |
with: | |
go-version-file: .go-version | |
- name: 'Build CLI with docs support' | |
run: make dispatch-docs | |
- name: 'Tar files' | |
run: tar -cvf cli_with_docs.tar build/linux/amd64 | |
- name: 'Upload Artifact' | |
uses: actions/upload-artifact@v4 | |
with: | |
name: cli_with_docs | |
path: cli_with_docs.tar |