renamed button to "save" for consistency #53
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Continuous integration | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
- run: npm ci | |
- run: npm run format:check | |
- run: npm run test | |
- run: npm run build | |
- run: npm run zip | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: domain-story-modeler | |
path: | | |
dist/*.zip | |
README.md | |
if-no-files-found: error # 'warn' or 'ignore' are also available, defaults to `warn` | |
# Commented out until there is a functional user and a PAT configured. | |
# - name: Deploy website | |
# run: | | |
# sed -i -E "s/version:\s'[0-9]+\.[0-9]+\.[0-9]+'/version: '${{ github.sha }}'/" src/environments/environment.prod.ts | |
# sed -i -E "s/\"version\":\s\"[0-9]+\.[0-9]+\.[0-9]+\"/\"version\": \"${{ github.sha }}\"/" package.json | |
# npm run build | |
# | |
# CLONE_DIR=$(mktemp -d) | |
# | |
# git config --global user.email "[email protected]" | |
# git config --global user.name "Egon.io Bot" | |
# git clone --single-branch --branch main "https://x-access-token:${{ secrets.EGON_IO_DEPLOYMENT_PAT }}@github.com/WPS/egon.io-website.git" "${CLONE_DIR}" | |
# | |
# rm -r "${CLONE_DIR}/app-latest" | |
# mkdir "${CLONE_DIR}/app-latest" | |
# cp -r dist_build/egon/* "${CLONE_DIR}/app-latest" | |
# | |
# cd "${CLONE_DIR}" | |
# git add . | |
# git commit -m "Deploy latest build" | |
# git push | |
# |