Skip to content

Commit

Permalink
Merge pull request #93 from nspcc-dev/pdf-name
Browse files Browse the repository at this point in the history
Pdf name
  • Loading branch information
roman-khimov authored Nov 14, 2023
2 parents b20ae21 + 6c36db5 commit 3427f14
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
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

0 comments on commit 3427f14

Please sign in to comment.