Skip to content

Commit

Permalink
Revert: Added CI/CD - removed environments
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaljanicki committed Feb 26, 2024
1 parent ed4412f commit de4de44
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: Publish frontend
on:
push:
branches:
- develop
- master

env:
Expand Down Expand Up @@ -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}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down

0 comments on commit de4de44

Please sign in to comment.