Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pdf name #93

Merged
merged 2 commits into from
Nov 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions .github/workflows/neofs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,15 @@ jobs:
- name: Build Docker image
run: make image

- name: Get pdf file name
run: |
echo "PDF_FILE_NAME=$(make pdf_file_name)" >> $GITHUB_ENV
- name: Get pdf file
run: make docker/pdf

- name: Publish to NeoFS
id: publish_spec_pdf_to_neofs
uses: nspcc-dev/[email protected]
with:
NEOFS_WALLET: ${{ secrets.NEOFS_WALLET }}
Expand All @@ -25,3 +30,15 @@ jobs:
NEOFS_HTTP_GATE: ${{ vars.NEOFS_HTTP_GATE }}
STORE_OBJECTS_CID: ${{ vars.STORE_OBJECTS_CID }}
PATH_TO_FILES_DIR: output

- name: Post the link to the spec
env:
CONTAINER_URL: ${{ steps.publish_spec_pdf_to_neofs.outputs.OUTPUT_CONTAINER_URL }}
SPEC_FILE: ${{ env.PDF_FILE_NAME }}
uses: Sibz/github-status-action@v1
with:
authToken: ${{secrets.GITHUB_TOKEN}}
context: 'Neofs spec pdf'
state: 'success'
sha: ${{github.event.pull_request.head.sha || github.sha}}
target_url: ${{ env.CONTAINER_URL }}/${{ env.SPEC_FILE }}
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,17 @@ PUMLS = $(shell find . -mindepth 3 -maxdepth 4 -type f -name '*.puml' -o -name '
SVGS = $(shell find . -mindepth 3 -maxdepth 4 -type f -name '*.svg' | sort)
HTML_PIC = $(shell find . -mindepth 3 -maxdepth 3 ! -path './${OUT_DIR}/*' ! -path './${BUILD_DIR}/*' -type f -name '*.svg' -o -name '*.png' -o -name '*.jpg')

.PHONY: all pdf html site directories view clean
.PHONY: all pdf html site directories view clean pdf_file_name

all: pdf site

directories: $(OUT_DIR) $(BUILD_DIR)

pdf: $(OUT_DIR)/$(PDF_NAME)

pdf_file_name:
@echo $(PDF_NAME)

view:
type xdg-open >/dev/null 2>&1 && xdg-open $(OUT_DIR)/$(PDF_NAME) || open $(OUT_DIR)/$(PDF_NAME)

Expand Down
Loading