From 113b8ab6ff0225603064ef4384de0e8650f55caf Mon Sep 17 00:00:00 2001 From: Mikhail Petrov Date: Fri, 10 Nov 2023 16:26:32 +0300 Subject: [PATCH] git: Add Github Action for publish spec to NeoFS closes #85 Signed-off-by: Mikhail Petrov --- .github/workflows/neofs.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 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..c739431 --- /dev/null +++ b/.github/workflows/neofs.yml @@ -0,0 +1,25 @@ +name: Publish to NeoFS +on: + push: + branches: [ master ] + +jobs: + push-to-neofs: + runs-on: ubuntu-latest + steps: + - name: Build Docker image + run: make image + + - name: Get pdf file + run: make docker/pdf + + - uses: actions/checkout@v4 + - name: Publish to NeoFS + uses: nspcc-dev/gh-push-to-neofs@v0.1.1 + 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: output