diff --git a/.gitea/workflows/main.yml b/.gitea/workflows/main.yml
index 6667cbb3..ea94fca9 100644
--- a/.gitea/workflows/main.yml
+++ b/.gitea/workflows/main.yml
@@ -1,24 +1,48 @@
-name: 'deploy'
-on:
- push:
- branches:
- - main
- - feature/sse-connect
-
-jobs:
- test:
- runs-on: ubuntu-latest
- steps:
- - name: Checkout code
- uses: actions/checkout@v2
-
- - name: Set up Node.js
- uses: actions/setup-node@v3
- with:
- node-version: '18'
-
- - name: Install dependencies
- run: npm install
-
- - name: Run tests
- run: npm run check
+name: 'deploy'
+on:
+ push:
+ branches:
+ - main
+ - feature/sse-connect
+
+jobs:
+ test:
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout code
+ uses: actions/checkout@v2
+
+ - name: Set up Node.js
+ uses: actions/setup-node@v3
+ with:
+ node-version: '18'
+
+ - name: Install dependencies
+ run: npm install
+
+ - name: Run tests
+ run: npm run check
+
+ update_mailgun_template:
+ runs-on: ubuntu-latest
+ name: Update 'main' template on Mailgun
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v2
+ - name: update authorizer_password_reset
+ uses: jlepocher/mailgun-create-template-version-action@v1.3
+ with:
+ mailgun-host: 'api.eu.mailgun.net'
+ mailgun-api-key: ${{ secrets.MAILGUN_API_KEY }}
+ mailgun-domain-name: 'discours.io'
+ mailgun-template-name: 'authorizer_password_reset'
+ html-file-path: './templates/authorizer_password_reset.html'
+
+ - name: update authorizer_password_reset
+ uses: jlepocher/mailgun-create-template-version-action@v1.3
+ with:
+ mailgun-host: 'api.eu.mailgun.net'
+ mailgun-api-key: ${{ secrets.MAILGUN_API_KEY }}
+ mailgun-domain-name: 'discours.io'
+ mailgun-template-name: 'authorizer_email_confirm'
+ html-file-path: './templates/authorizer_email_confirm.html'
diff --git a/templates/authorizer_email_confirmation.html b/templates/authorizer_email_confirmation.html
new file mode 100644
index 00000000..406c479d
--- /dev/null
+++ b/templates/authorizer_email_confirmation.html
@@ -0,0 +1,204 @@
+
+
+
+
+
+ |
+
+
+ 
+
+
+
+
+
+
+
+ Приветствуем! Пожалуйста, подтвердите почту, нажав на ссылку ниже.
+ |
+
+
+
+ Мы будем оповещать вас о важных вещах.
+ |
+
+
+
+
+ Подтвердить
+
+ |
+
+
+
+ — Дискурс
+ |
+
+
+ |
+
+
+
+
+ |
+
+
+
+
diff --git a/templates/authorizer_password_reset.html b/templates/authorizer_password_reset.html
new file mode 100644
index 00000000..17939816
--- /dev/null
+++ b/templates/authorizer_password_reset.html
@@ -0,0 +1,454 @@
+
+
+
+
+