Setting up CD
This commit is contained in:
parent
4458f96ba6
commit
c2601e709e
1 changed files with 21 additions and 3 deletions
|
@ -10,6 +10,25 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: Set up Node.js
|
||||
uses: actions/setup-node@v1.2.0
|
||||
with:
|
||||
node-version: '15'
|
||||
env:
|
||||
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true'
|
||||
|
||||
- name: install deps
|
||||
run: npm ci
|
||||
|
||||
- name: create generated dir
|
||||
run: mkdir ./assets/generated
|
||||
|
||||
- name: create stub themes
|
||||
run: "echo '{\"layers\": [], \"themes\": []}' > ./assets/generated/known_layers_and_themes.json"
|
||||
|
||||
- name: Prepare deploy
|
||||
run: npm run prepare-deploy
|
||||
|
||||
- name: Clone deployment repo
|
||||
env:
|
||||
|
@ -24,11 +43,10 @@ jobs:
|
|||
- name: "Copying files"
|
||||
run: |
|
||||
echo "Deploying"
|
||||
# rm -rf mapcomplete.github.io/*
|
||||
# cp dist/* mapcomplete.github.io/
|
||||
rm -rf mapcomplete.github.io/*
|
||||
cp dist/* mapcomplete.github.io/
|
||||
cd mapcomplete.github.io/
|
||||
echo "mapcomplete.osm.be" > CNAME
|
||||
echo "Test" > test
|
||||
git add *
|
||||
git commit -am "Deploying a new version"
|
||||
git push
|
||||
|
|
Loading…
Reference in a new issue