Add Brzice, Lhota pod Hořičkami, Litoboř lokality.json #77
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
name: validate and deploy | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
validate: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Validate charity.json | |
uses: docker://orrosenblatt/validate-json-action:latest | |
env: | |
INPUT_SCHEMA: /schemas/charity-schema.json | |
INPUT_JSONS: /charity.json | |
- name: Validate lokality.json | |
uses: docker://orrosenblatt/validate-json-action:latest | |
env: | |
INPUT_SCHEMA: /schemas/lokality-schema.json | |
INPUT_JSONS: /lokality.json | |
upload: | |
needs: validate | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 10 | |
- name: git-ftp push | |
uses: sebastianpopp/git-ftp-action@fix-ssl-issue | |
with: | |
url: ${{ secrets.HOST }} | |
user: ${{ secrets.SSH_USER }} | |
password: ${{ secrets.PASSWORD }} | |
options: --auto-init --insecure | |
send-email-on-success: | |
needs: upload | |
runs-on: ubuntu-latest | |
steps: | |
- name: Send Mail Action | |
id: sendmail | |
uses: vineetchoudhary/[email protected] | |
with: | |
api-key: ${{ secrets.MAILGUN_API_SECRET }} | |
domain: ${{ secrets.MAILGUN_DOMAIN }} | |
from: ${{ secrets.FROM }} | |
to: ${{ secrets.RECIPIENT }} | |
cc: [email protected] | |
subject: Změny nahrány do mapy TKS | |
body: Ahoj, změny od {{ GITHUB_ACTOR }} jsou nyní k vidění na webu http://tks.dchhk.cz/.<br /><br /><i>Tento e-mail je generovaný automaticky.</i> | |
- name: Send Mail Action Response | |
run: echo "${{ steps.sendmail.outputs.response }}" |