Skip to content

Merge pull request #93 from nspcc-dev/pdf-name #11

Merge pull request #93 from nspcc-dev/pdf-name

Merge pull request #93 from nspcc-dev/pdf-name #11

Workflow file for this run

name: Publish to NeoFS
on:
push:
branches: [ master ]
jobs:
push-to-neofs:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
- 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 }}
NEOFS_WALLET_PASSWORD: ${{ secrets.NEOFS_WALLET_PASSWORD }}
NEOFS_NETWORK_DOMAIN: ${{ vars.NEOFS_NETWORK_DOMAIN }}
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 }}