Skip to content

Commit

Permalink
Merge pull request #94 from nspcc-dev/spec-latest
Browse files Browse the repository at this point in the history
Spec latest
  • Loading branch information
roman-khimov authored Nov 14, 2023
2 parents 3427f14 + b54289f commit c57acef
Showing 1 changed file with 22 additions and 3 deletions.
25 changes: 22 additions & 3 deletions .github/workflows/neofs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ on:
push:
branches: [ master ]

env:
LATEST_PDF_FILE_NAME: 'neofs-spec-latest.pdf'

jobs:
push-to-neofs:
runs-on: ubuntu-latest
Expand All @@ -20,6 +23,10 @@ jobs:
- 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]
Expand All @@ -31,14 +38,26 @@ jobs:
STORE_OBJECTS_CID: ${{ vars.STORE_OBJECTS_CID }}
PATH_TO_FILES_DIR: output

- name: Post the link to the spec
- 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 spec pdf'
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 }}
target_url: ${{ env.CONTAINER_URL }}${{ env.SPEC_FILE }}

0 comments on commit c57acef

Please sign in to comment.