mapcomplete/.github/workflows/theme_validation_and_deploy.yml
2021-06-01 14:03:35 +02:00

34 lines
1,022 B
YAML

name: Theme Validation and deployment
on:
push:
branches:
- develop
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Clone deployment repo
run: |
echo "Cloning destination repo"
git config --global user.email "pietervdvn@posteo.net"
git config --global user.name "MapComplete"
git clone --single-branch --branch main "https://x-access-token:$DEPLOY_KEY@github.com/MapComplete/mapcomplete.github.io.git"
echo "Destination repo is cloned"
- name: "Copying files"
env:
DEPLOY_KEY: ${{ secrets.DEPLOY_KEY }}
run: |
echo "Deploying"
# 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