forked from MapComplete/MapComplete
Setting up CD
This commit is contained in:
parent
bba01d5c1c
commit
63d11ea806
1 changed files with 5 additions and 7 deletions
|
@ -14,20 +14,18 @@ jobs:
|
||||||
- name: Clone deployment repo
|
- name: Clone deployment repo
|
||||||
run: |
|
run: |
|
||||||
echo "Cloning destination repo"
|
echo "Cloning destination repo"
|
||||||
CLONE_DIR=$(mktemp -d)
|
|
||||||
git config --global user.email "pietervdvn+mapcomplete@posteo.net"
|
git config --global user.email "pietervdvn+mapcomplete@posteo.net"
|
||||||
git config --global user.name "MapComplete"
|
git config --global user.name "MapComplete"
|
||||||
git clone --single-branch --branch main "https://x-access-token:$API_TOKEN_GITHUB@github.com/MapComplete/mapcomplete.github.io.git" "$CLONE_DIR"
|
git clone --single-branch --branch main "https://x-access-token:$API_TOKEN_GITHUB@github.com/MapComplete/mapcomplete.github.io.git"
|
||||||
echo "Destination repo is cloned"
|
echo "Destination repo is cloned"
|
||||||
|
|
||||||
- name: "Copying files"
|
- name: "Copying files"
|
||||||
run: |
|
run: |
|
||||||
pwd
|
|
||||||
echo "CLONE_DIR: $CLONE_DIR"
|
|
||||||
echo "Deploying"
|
echo "Deploying"
|
||||||
rm $CLONE_DIR/*
|
# rm -rf mapcomplete.github.io/*
|
||||||
cp dist/* $CLONE_DIR/
|
# cp dist/* mapcomplete.github.io/
|
||||||
cd $CLONE_DIR
|
cd mapcomplete.github.io/
|
||||||
echo "mapcomplete.osm.be" > CNAME
|
echo "mapcomplete.osm.be" > CNAME
|
||||||
|
echo "Test" > test
|
||||||
git commit -am "Deploying a new version"
|
git commit -am "Deploying a new version"
|
||||||
git push
|
git push
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue