From 612b1b451f5bcd1c663da99110aac6f8d8ff8c17 Mon Sep 17 00:00:00 2001 From: Mikhail Petrov Date: Fri, 20 Oct 2023 22:02:14 +0300 Subject: [PATCH] git: Add Github Action for publish spec to NeoFS closes #85 Signed-off-by: Mikhail Petrov --- .github/workflows/neofs.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/neofs.yml diff --git a/.github/workflows/neofs.yml b/.github/workflows/neofs.yml new file mode 100644 index 0000000..00e541a --- /dev/null +++ b/.github/workflows/neofs.yml @@ -0,0 +1,32 @@ +name: Publish to NeoFS +on: + push: + branches: [ master ] + +env: + NEOFS_NETWORK_DOMAIN: 'st1.storage.fs.neo.org' + NEOFS_HTTP_GATE: 'http.fs.neo.org' + PATH_TO_FILES_DIR: 'output/neofs-spec-.pdf' + STORE_OBJECTS_CID: '' + +jobs: + push-to-neofs: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Install + run: make image + + - name: Compile + run: make docker/pdf + + - name: Publish to NeoFS + uses: nspcc-dev/gh-push-allure-report-to-neofsfs@master + with: + NEOFS_WALLET: ${{ secrets.NEOFS_WALLET }} + NEOFS_WALLET_PASSWORD: ${{ secrets.NEOFS_WALLET_PASSWORD }} + NEOFS_NETWORK_DOMAIN: ${{ env.NEOFS_NETWORK_DOMAIN }} + NEOFS_HTTP_GATE: ${{ env.NEOFS_HTTP_GATE }} + STORE_OBJECTS_CID: ${{ env.STORE_OBJECTS_CID }} + PATH_TO_FILES_DIR: ${{ env.REPORT_DIR }}