Skip to content

Commit

Permalink
Merge pull request #227 from nspcc-dev/deploy-to-neofs
Browse files Browse the repository at this point in the history
workflows: push release to production NeoFS container
  • Loading branch information
roman-khimov authored Sep 16, 2024
2 parents 27e7c60 + 06830bd commit aeb6012
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ on:
description: 'Ref to build [default: latest master; examples: v0.4.0, 9595da7d83efc330ca0bc94bef482e4edfbcf8fd]'
required: false
default: ''
deploy:
description: 'Deploy to production [default: false; examples: true, false]'
required: false
default: 'false'

jobs:
build_release:
Expand Down Expand Up @@ -48,3 +52,16 @@ jobs:
run: gh release upload ${{ github.event.release.tag_name }} ./panel.fs.neo.org-*.tar.gz
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Publish to NeoFS
if: ${{ github.event_name == 'release' || (github.event_name == 'workflow_dispatch' && github.event.inputs.deploy == 'true') }}
uses: nspcc-dev/gh-push-to-neofs@master
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: panel.fs.neo.org
STRIP_PREFIX: true
REPLACE_CONTAINER_CONTENTS: true

0 comments on commit aeb6012

Please sign in to comment.