-
Notifications
You must be signed in to change notification settings - Fork 111
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
EGON-41: Workflow draft for automatic deployment
- Loading branch information
Tom Dymel
committed
Dec 21, 2023
1 parent
3650046
commit 6948191
Showing
1 changed file
with
23 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
# |