Skip to content

Commit

Permalink
EGON-41: Workflow draft for automatic deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom Dymel committed Dec 21, 2023
1 parent 3650046 commit 6948191
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,26 @@ jobs:
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}/latest"
# mkdir "${CLONE_DIR}/latest"
# cp -r dist_build/egon/* "${CLONE_DIR}/latest"
#
# cd "${CLONE_DIR}"
# git add .
# git commit -m "Deploy latest build"
# git push
#

0 comments on commit 6948191

Please sign in to comment.