Skip to content

Spec latest

Spec latest #12

Workflow file for this run

name: Publish to NeoFS
on:
push:
branches: [ master ]
pull_request:
branches:
- master
types: [ opened, synchronize ]
env:
LATEST_PDF_FILE_NAME: 'neofs-spec-latest.pdf'
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: Create latest spec file
run: |
cp output/${{ env.PDF_FILE_NAME }} output/${{ env.LATEST_PDF_FILE_NAME }}
- 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 current 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 current spec pdf'
state: 'success'
sha: ${{github.event.pull_request.head.sha || github.sha}}
target_url: ${{ env.CONTAINER_URL }}${{ env.SPEC_FILE }}
- name: Post the link to the latest spec
env:
CONTAINER_URL: ${{ steps.publish_spec_pdf_to_neofs.outputs.OUTPUT_CONTAINER_URL }}
SPEC_FILE: ${{ env.LATEST_PDF_FILE_NAME }}
uses: Sibz/github-status-action@v1
with:
authToken: ${{secrets.GITHUB_TOKEN}}
context: 'Neofs latest spec pdf'
state: 'success'
sha: ${{github.event.pull_request.head.sha || github.sha}}
target_url: ${{ env.CONTAINER_URL }}${{ env.SPEC_FILE }}