diff --git a/.github/workflows/theme_validation_and_deploy.yml b/.github/workflows/theme_validation_and_deploy.yml index 7c4b7a116e..1d5b92abd4 100644 --- a/.github/workflows/theme_validation_and_deploy.yml +++ b/.github/workflows/theme_validation_and_deploy.yml @@ -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