diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index a63eb1e..bdf1b83 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -3,6 +3,7 @@ name: Publish frontend on: push: branches: + - develop - master env: @@ -39,4 +40,6 @@ jobs: env: PUBLISH_DOCS_USERNAME: ${{ vars.PUBLISH_DOCS_USERNAME }} PUBLISH_DOCS_PASSWORD: ${{ vars.PUBLISH_DOCS_PASSWORD }} - run: npm run publish-prod + run: | + SIMPLE_REF=$(echo ${GITHUB_REF#refs/heads/} | tr / -) + npm run publish-${SIMPLE_REF} diff --git a/package.json b/package.json index c39be9a..cd4112e 100644 --- a/package.json +++ b/package.json @@ -6,6 +6,7 @@ "scripts": { "test": "echo \"Error: no test specified\" && exit 1", "build": "webpack --config webpack.config.js", + "publish-develop": "npm run build && python publish.py", "publish-prod": "npm run build && python publish.py --stage prod" }, "repository": {