Skip to content

Add Atom feed support #501

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 330 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
330 commits
Select commit Hold shift + click to select a range
b8575db
Update contributors section
Apr 13, 2021
bbefeaf
Update subscribers counter
Apr 13, 2021
a90e685
Update contributors section
Apr 15, 2021
949313c
Update subscribers counter
Apr 15, 2021
492f80f
Create LICENSE (close #173)
Apr 20, 2021
3b699d2
Update subscribers counter
Apr 20, 2021
5ed6cd7
Add archive num11
Apr 20, 2021
f991d7c
Fix wrong newsletter number bug (temporary solution)
Apr 23, 2021
9b6e347
--
Apr 23, 2021
e7ef216
--
Apr 23, 2021
aa3e3fd
--
Apr 23, 2021
0b92625
--
Apr 23, 2021
008e330
--
Apr 23, 2021
d912026
--
Apr 23, 2021
1f15fb4
--
Apr 23, 2021
6182fbe
Update contributors section
Apr 23, 2021
819f7f5
Add archive (num 12)
Apr 23, 2021
e764016
Merge branch 'main' of github.com:softwaretalks/newsletter into main
Apr 23, 2021
57c2004
Update subscribers counter
Apr 23, 2021
9450af7
Create DOCKER_COMMANDS.md
Apr 25, 2021
b7f2eb6
Update DOCKER_COMMANDS.md
Apr 25, 2021
f2f84f9
Update subscriber counters
Apr 26, 2021
c3b6f7f
Update contributors section
Apr 30, 2021
90d47a4
Update subscriber counters
Apr 30, 2021
62545b1
Update subscriber counter
Apr 30, 2021
3117248
Update subscriber counter
May 1, 2021
cfcf4d0
Update contributors section
May 8, 2021
386b6d5
Update subscriber counter
May 13, 2021
401d550
--
May 13, 2021
2031793
Update contributors section
May 13, 2021
5975436
Add archive (13,14,15)
May 18, 2021
d223c21
Update contributors section
May 18, 2021
5bfeb5d
Update subscriber counter
May 18, 2021
b8be6a9
Update contributors section
May 20, 2021
b2af9f2
Add dockerfile
May 22, 2021
69197dc
Merge branch 'main' of github.com:softwaretalks/newsletter into main
May 22, 2021
e1c1ae5
Fix docker command
May 22, 2021
b0e299f
Update subscriber counter
May 27, 2021
5ee6123
Update contributors section
May 27, 2021
1302a15
Delete CNAME
May 30, 2021
aa791b2
Create CNAME
May 30, 2021
7f83432
Update subscriber counter
May 30, 2021
15bbf14
Add archive (16, 17)
May 30, 2021
3214d3c
Update contributors section
Jun 3, 2021
d46ccb4
Alpine: am i joke to you? [Change baseimage from ubuntu to alpine]
Jun 3, 2021
800e0dd
یک‌سری اصلاحات (#229)
Jun 10, 2021
3ac678e
Add archive (num 18)
Jun 10, 2021
943ed62
Due to a mistake in merging from @kokabi1365, I comitated index.html …
Jun 10, 2021
98e8478
Update contributors section
Jun 10, 2021
67de5e8
Update subscriber counter
ohmydevops Jun 10, 2021
4311eb2
Update index.html
ohmydevops Jun 10, 2021
82d6994
Update README.md
ohmydevops Jun 12, 2021
7dcb37f
Update README.md
ohmydevops Jun 12, 2021
5b7e921
Update contributors section
ohmydevops Jun 24, 2021
f5a209b
Update README.md
ohmydevops Jun 24, 2021
9e8f810
حذفِ نقطهٔ توپرِ کنارِ عنوانِ مطلب در تمپلیتِ ایمیلی (#237)
Jul 1, 2021
c6095be
Update DOCKER_COMMANDS.md
ohmydevops Jul 1, 2021
c861f5f
Update contributors section
ohmydevops Jul 1, 2021
9fe77d0
Update contributors section
ohmydevops Jul 8, 2021
5883ecf
Update subscriber counter
ohmydevops Jul 10, 2021
90cf06d
Increase space between emoji and text
ohmydevops Jul 10, 2021
0bb1d55
Update index.html
ohmydevops Jul 10, 2021
9eeeff2
Add archives (19, 20, 21, 22, 23)
ohmydevops Jul 10, 2021
5b4e14d
Remove unnecessary links
ohmydevops Jul 10, 2021
39873f4
Add robots.txt
ohmydevops Jul 10, 2021
389a5ec
Fix wrong dates (This is what happens when we just copy and paste)
ohmydevops Jul 10, 2021
67d6b2c
Remove unnecessary colon
ohmydevops Jul 10, 2021
9a9ff1a
Update issue templates
ohmydevops Jul 13, 2021
a0641b1
Update subscribers counter
ohmydevops Jul 13, 2021
762d487
Update contributors section
ohmydevops Jul 15, 2021
7c6b334
Create test-archive.yaml
ohmydevops Jul 16, 2021
3d63dad
Update test-archive.yaml
ohmydevops Jul 16, 2021
14147f8
Add archive automation (#272)
ohmydevops Jul 16, 2021
04c832a
Delete num24.html
ohmydevops Jul 17, 2021
1404805
Update subscribers counter
ohmydevops Jul 18, 2021
76016eb
Add files via upload
ohmydevops Jul 18, 2021
f347437
Delete screenshot.png
ohmydevops Jul 18, 2021
706e5f2
Add files via upload
ohmydevops Jul 18, 2021
60de8e9
Add YouTube link to README
ohmydevops Jul 18, 2021
9e4765f
Update README.md
ohmydevops Jul 18, 2021
e9931a1
Add emoji (Yesterday was a emoji day)
ohmydevops Jul 18, 2021
03f53db
Update README.md
ohmydevops Jul 18, 2021
f595d89
Update README.md
ohmydevops Jul 18, 2021
d753e2e
Add youtube video about newsletter
ohmydevops Jul 20, 2021
2b9c9a1
Update subscribers counter
ohmydevops Jul 21, 2021
79e9de0
Add Archive
ohmydevops Jul 22, 2021
982a313
Update contributors section + add archvie 24, 25
ohmydevops Jul 22, 2021
9b7df42
بهبود ساختار کد خبرنامه (#277)
ohmydevops Jul 22, 2021
209525b
Delete DOCKER_COMMANDS.md
ohmydevops Jul 22, 2021
b92ca13
More meaningful error
ohmydevops Jul 24, 2021
a0f1784
trying to survive :muscle:
ohmydevops Jul 25, 2021
22ed8eb
Add cover image to README.md
ohmydevops Jul 25, 2021
bf2f40a
Update README.md
ohmydevops Jul 25, 2021
110ad28
Remove comment section
ohmydevops Jul 25, 2021
278ff5e
Add send time to index.html
ohmydevops Jul 25, 2021
7a1bafd
Fix Dockerfile
ohmydevops Jul 25, 2021
5eba647
Update CNAME
ohmydevops Jul 25, 2021
8c72b1b
Update CNAME
ohmydevops Jul 25, 2021
2047c9f
به امید روزهای بهتر ...
ohmydevops Jul 28, 2021
a657ccf
Merge branch 'main' of github.com:softwaretalks/newsletter into main
ohmydevops Jul 28, 2021
7355ff3
به امید روزهای بهتر ... :black_heart:
ohmydevops Jul 28, 2021
421dc35
Update subscribers counter
ohmydevops Jul 29, 2021
7b95e5b
Add Archive
ohmydevops Jul 29, 2021
af09f70
Add archive (num 26)
ohmydevops Jul 29, 2021
92a7504
Update contributors section
ohmydevops Jul 29, 2021
d754f67
Fix statistics script
ohmydevops Jul 29, 2021
9122478
Reduce loading speed
ohmydevops Aug 1, 2021
12f380a
Add Archive
ohmydevops Aug 5, 2021
b73fcf7
Add archive (num 27)
ohmydevops Aug 5, 2021
994c0b0
Update contributors section
ohmydevops Aug 5, 2021
565a5e7
Add Archive
ohmydevops Aug 12, 2021
2c4bad5
Add archive (num 28)
ohmydevops Aug 13, 2021
f1234a3
Update contributors section
ohmydevops Aug 13, 2021
439e20a
--
ohmydevops Aug 26, 2021
92f76ec
Add Archive
ohmydevops Aug 26, 2021
6e8a0a6
Update contributors section
ohmydevops Aug 26, 2021
62d3239
Update subscribers counter
ohmydevops Aug 26, 2021
47d360f
Add archive (num 29)
ohmydevops Aug 26, 2021
5e5c843
Add Archive
ohmydevops Sep 3, 2021
fa1a6da
Add archive (num 30)
ohmydevops Sep 3, 2021
83d24e0
Update subscribers counter
ohmydevops Sep 3, 2021
8c87d5b
افزودن قالب ارسال ایمیل تیره - ویژ‌ه‌نامه کرونا (#322)
amirshnll Sep 16, 2021
5d728f2
Fix envs bug (TOP_CONTENT_HTML_DARK)
ohmydevops Sep 16, 2021
e4a6d30
Fix envs in github actions file (TOP_CONTENT_HTML_DARK)
ohmydevops Sep 16, 2021
07e22fe
enhance background color width
ohmydevops Sep 16, 2021
05df11e
--
ohmydevops Sep 16, 2021
dce5f50
Fix Semi-Space
ohmydevops Sep 16, 2021
c6d34c8
Fix dark theme for mail clients
ohmydevops Sep 17, 2021
6a58632
Add Archive
ohmydevops Sep 17, 2021
49b1f79
Add Archive
ohmydevops Sep 17, 2021
c3cba63
Update index.html (add archive 31)
ohmydevops Sep 19, 2021
0c4879e
Add Archive
ohmydevops Sep 24, 2021
b30088a
Add archive (num 32)
ohmydevops Sep 24, 2021
9c6f0cf
Update contributors section
ohmydevops Sep 26, 2021
8696193
بازطراحیِ جزئیِ لوگو (#330)
Sep 30, 2021
5bfa7ba
Add Archive
ohmydevops Oct 9, 2021
596c578
Add archive (num 35)
ohmydevops Oct 9, 2021
71be079
Add Archive
ohmydevops Oct 16, 2021
6aa1201
Add archive (num 36)
ohmydevops Oct 16, 2021
ed1e588
Update counter.php
ohmydevops Oct 30, 2021
1b76177
Add Archive
ohmydevops Oct 30, 2021
68d1cdc
Big update
ohmydevops Oct 30, 2021
8a26404
Update contributors section
ohmydevops Oct 30, 2021
5ddc9be
Feature/php8.0 (#353)
ohmydevops Nov 1, 2021
53cb609
Add Archive
ohmydevops Nov 6, 2021
09018b8
Add archive link (num 38)
ohmydevops Nov 6, 2021
9b98288
Update contributors section
ohmydevops Nov 6, 2021
584e7be
Fix/check-isProduction-env-from-outside-of-modules (#357)
ohmydevops Nov 6, 2021
142ce4c
[ci skip] --
ohmydevops Nov 11, 2021
2cb3ef2
Update subscribers counter
ohmydevops Nov 11, 2021
e0b85b3
Add Archive
ohmydevops Nov 11, 2021
f27ba88
Add archive (num 39)
ohmydevops Nov 11, 2021
f5b02ea
Update contributors section
ohmydevops Nov 12, 2021
03a8868
Add Yandex.Metrika
ohmydevops Nov 12, 2021
bb81eba
Update Yandex.Metrika
ohmydevops Nov 12, 2021
3e99155
Add Archive
ohmydevops Nov 18, 2021
95c47cf
Add archive (num 40)
ohmydevops Nov 18, 2021
9419e82
HTML format
ohmydevops Nov 19, 2021
9d8e517
Add GDPR cookie policy
ohmydevops Nov 19, 2021
6c7a360
Update subscribers counter
ohmydevops Nov 19, 2021
992571f
Update contributors section
ohmydevops Nov 19, 2021
8a7cfee
Fix contributors section
ohmydevops Nov 19, 2021
f62a543
Update README.md
ohmydevops Nov 19, 2021
cc39959
Add Archive
ohmydevops Nov 26, 2021
3a46c40
Add archive 41 link
ohmydevops Nov 26, 2021
e944262
Update counter.php
ohmydevops Dec 9, 2021
34d539b
Add Archive
ohmydevops Dec 9, 2021
2888486
Add archive num 42
ohmydevops Dec 9, 2021
d80edd5
Update index.html
ohmydevops Dec 10, 2021
fb63519
Update README.md
ohmydevops Dec 10, 2021
1925bc0
Update README.md
ohmydevops Dec 10, 2021
51fc46b
Update index.html
ohmydevops Dec 21, 2021
965be4b
Fix metrika cookie problem (#392)
ohmydevops Dec 21, 2021
da35361
Update BOTTOM_CONTENT_HTML.txt
ohmydevops Dec 23, 2021
906fc99
Update BOTTOM_CONTENT_HTML.txt
ohmydevops Dec 23, 2021
fecbcdb
Update BOTTOM_CONTENT_HTML_DARK.txt
ohmydevops Dec 23, 2021
a639977
Update counter.php
ohmydevops Dec 23, 2021
bf35120
Add Archive
ohmydevops Dec 23, 2021
3f668f9
Add archive num 43
ohmydevops Dec 23, 2021
331a29b
Update index.html
ohmydevops Dec 23, 2021
cd39f7c
Add contribution rules
ohmydevops Dec 24, 2021
6eadbe5
Add donation button (#393)
ohmydevops Jan 1, 2022
6a642f9
Update counter.php
ohmydevops Jan 1, 2022
2c96cb5
Add Archive
ohmydevops Jan 1, 2022
5d1b086
Update index.html
ohmydevops Jan 1, 2022
c2df515
Update counter.php
ohmydevops Jan 7, 2022
bd1e03a
Update counter.php
ohmydevops Jan 7, 2022
f861614
Add Archive
ohmydevops Jan 7, 2022
7c9fa30
Update index.html
ohmydevops Jan 7, 2022
7bbd4ac
Update index.html
ohmydevops Jan 7, 2022
c5b48b5
Update README.md
ohmydevops Jan 8, 2022
b76b5a7
Add Archive
ohmydevops Jan 13, 2022
4f558dd
Update index.html
ohmydevops Jan 13, 2022
d1d9590
800 subscriber :rocket: :tada:
ohmydevops Jan 16, 2022
ef9e19d
Add Archive
ohmydevops Jan 20, 2022
34a151e
Update index.html
ohmydevops Jan 20, 2022
2337edb
Add Archive
ohmydevops Jan 27, 2022
a806158
Update index.html
ohmydevops Jan 27, 2022
18c854b
Update counter.php
ohmydevops Feb 24, 2022
525874a
Add Archive
ohmydevops Feb 24, 2022
67e3972
Update index.html
ohmydevops Feb 24, 2022
3cec0bd
Update README.md
ohmydevops Mar 2, 2022
d19148a
Update README.md
ohmydevops Mar 2, 2022
c3be507
Update counter.php
ohmydevops Mar 10, 2022
3c28ecb
Add Archive
ohmydevops Mar 10, 2022
0747d73
Update index.html
ohmydevops Mar 10, 2022
2eb0452
Update index.html
ohmydevops Mar 10, 2022
92e76b6
Update README.md
ohmydevops Mar 10, 2022
e9ce115
Update counter.php
ohmydevops Apr 28, 2022
9d0d4f7
Add Archive
ohmydevops Apr 28, 2022
f2a4e89
Update index.html
ohmydevops Apr 28, 2022
f1d5b41
Update index.html
ohmydevops Apr 28, 2022
989bff1
Fix archive year (#434)
h4iku Apr 30, 2022
cce4d27
Add Archive
ohmydevops Jun 2, 2022
30d1f37
Update index.html
ohmydevops Jun 7, 2022
ebd4353
Update and rename num56.html to num52.html
ohmydevops Jun 7, 2022
62c6254
Update index.html
ohmydevops Jun 7, 2022
4f62ae6
Update index.html
ohmydevops Jun 7, 2022
157e596
Add Archive
ohmydevops Jun 9, 2022
f1b0e91
Update counter.php
ohmydevops Jun 16, 2022
f710150
--
ohmydevops Jun 16, 2022
21fb2bd
Add Archive
ohmydevops Jun 16, 2022
6a617b4
Add archive
ohmydevops Jun 16, 2022
292f834
Add Archive
ohmydevops Jun 23, 2022
029c1c4
Update index.html
ohmydevops Jun 23, 2022
78e7050
Add Archive
ohmydevops Jun 30, 2022
ffd3d2f
Update index.html
ohmydevops Jun 30, 2022
e335309
Update index.html
ohmydevops Jun 30, 2022
42bd3eb
Add @amirshnll to reviewers
ohmydevops Jul 4, 2022
907c6aa
Add Archive
ohmydevops Jul 7, 2022
b371a5d
Add Archive
ohmydevops Jul 15, 2022
3c37b60
Update index.html
ohmydevops Jul 15, 2022
a5ef384
Add Archive
ohmydevops Jul 21, 2022
760411b
Add Archive
ohmydevops Jul 28, 2022
83b88a2
Update archive
ohmydevops Jul 28, 2022
93e1785
Update index.html
ohmydevops Jul 28, 2022
63c1645
Remove unnecessary image ☠️
ohmydevops Jul 28, 2022
df632bc
Add Archive
ohmydevops Aug 5, 2022
10a76c6
Add Archive
ohmydevops Aug 11, 2022
6da3d0d
Add archives
ohmydevops Aug 11, 2022
c88ed42
Add Archive
ohmydevops Aug 18, 2022
60b4736
Add archive
ohmydevops Aug 20, 2022
8449569
Update subscriber counter
ohmydevops Aug 20, 2022
f4fb523
Add Archive
ohmydevops Aug 25, 2022
1d3ab92
Update index.html
ohmydevops Aug 31, 2022
409460d
Add Archive
ohmydevops Sep 1, 2022
281c487
Update contributors statistics
ohmydevops Sep 1, 2022
3fa3fed
Add Archive
ohmydevops Sep 8, 2022
379b24c
Add Archive
ohmydevops Sep 15, 2022
3a53482
Add Atom feed support
erfanara Sep 20, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
.idea/
.idea_modules/

**/vendor/**

.git
.github
21 changes: 21 additions & 0 deletions .github/ISSUE_TEMPLATE/CONTENT_CONTRIBUTE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
name: قالب مشارکت در تهیه محتوای خبرنامه
about: برای مشارکت در محتوای هفتگی خبرنامه، کافیست اطلاعات پست خود را وارد تمپلیت
کنید.
title: عنوان مطلب را اینجا نیز وارد کنید | ترجیحا فارسی
labels: content
assignees: Hameds, ohmydevops, amirshnll

---

##### نام و نام‌خانوادگی شما
userFullName: ""

##### عنوان محتوا
postTitle: ""

##### خلاصه‌ای حداکثر ۲ الی ۳ خطی درباره مضمون محتوا
postDescription: ""

##### لینک محتوا
postLink: ""
53 changes: 53 additions & 0 deletions .github/workflows/production.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: "♨️ Send email - Production"

on:
workflow_dispatch:

jobs:
send-email-for-all-users:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.0'
tools: composer:v2

- name: Install Composer dependencies
run: |
cd src
composer install --no-progress --optimize-autoloader --quiet

- name: Import BOTTOM_CONTENT_HTML and TOP_CONTENT_HTML into env
shell: bash
run: |
cd src
echo "BOTTOM_CONTENT_HTML=$(cat BOTTOM_CONTENT_HTML.txt)" >> $GITHUB_ENV
echo "TOP_CONTENT_HTML=$(cat TOP_CONTENT_HTML.txt)" >> $GITHUB_ENV

- name: Run script
run: php src/send_newsletter.php
env:
PAKAT_SMTP_USERNAME: ${{ secrets.PAKAT_SMTP_USERNAME }}
PAKAT_SMTP_PASSWORD: ${{ secrets.PAKAT_SMTP_PASSWORD }}
PAKAT_API_KEY: ${{ secrets.PAKAT_API_KEY }}
BOTTOM_CONTENT_HTML: ${{ env.BOTTOM_CONTENT_HTML }}
TOP_CONTENT_HTML: ${{ env.TOP_CONTENT_HTML }}
SEND_ENV: "production"
IS_DARK: "false"

- name: Commit Archive file
run: |
git config --local user.email "ohmydevops@gmail.com"
git config --local user.name "ohmydevops"
git add -A
git commit -m "Add Archive"

- name: Push Archive file
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: main
53 changes: 53 additions & 0 deletions .github/workflows/production_dark.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: "♨️ Send email dark - Production"

on:
workflow_dispatch:

jobs:
send-email-for-all-users:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.0'
tools: composer:v2

- name: Install Composer dependencies
run: |
cd src
composer install --no-progress --optimize-autoloader --quiet

- name: Import BOTTOM_CONTENT_HTML_DARK and TOP_CONTENT_HTML_DARK into env
shell: bash
run: |
cd src
echo "BOTTOM_CONTENT_HTML_DARK=$(cat BOTTOM_CONTENT_HTML_DARK.txt)" >> $GITHUB_ENV
echo "TOP_CONTENT_HTML_DARK=$(cat TOP_CONTENT_HTML_DARK.txt)" >> $GITHUB_ENV

- name: Run script
run: php src/send_newsletter.php
env:
PAKAT_SMTP_USERNAME: ${{ secrets.PAKAT_SMTP_USERNAME }}
PAKAT_SMTP_PASSWORD: ${{ secrets.PAKAT_SMTP_PASSWORD }}
PAKAT_API_KEY: ${{ secrets.PAKAT_API_KEY }}
BOTTOM_CONTENT_HTML_DARK: ${{ env.BOTTOM_CONTENT_HTML_DARK }}
TOP_CONTENT_HTML_DARK: ${{ env.TOP_CONTENT_HTML_DARK }}
SEND_ENV: "production"
IS_DARK: "true"

- name: Commit Archive file
run: |
git config --local user.email "ohmydevops@gmail.com"
git config --local user.name "ohmydevops"
git add -A
git commit -m "Add Archive"

- name: Push Archive file
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: main
40 changes: 40 additions & 0 deletions .github/workflows/staging.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: "🍊 Send email - Test"

on:
workflow_dispatch:

jobs:
send-email-for-test-users:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.0'
tools: composer:v2

- name: Install Composer dependencies
run: |
cd src
composer install --no-progress --optimize-autoloader --quiet

- name: Import BOTTOM_CONTENT_HTML and TOP_CONTENT_HTML into env
shell: bash
run: |
cd src
echo "BOTTOM_CONTENT_HTML=$(cat BOTTOM_CONTENT_HTML.txt)" >> $GITHUB_ENV
echo "TOP_CONTENT_HTML=$(cat TOP_CONTENT_HTML.txt)" >> $GITHUB_ENV

- name: Run script
run: php src/send_newsletter.php
env:
PAKAT_SMTP_USERNAME: ${{ secrets.PAKAT_SMTP_USERNAME }}
PAKAT_SMTP_PASSWORD: ${{ secrets.PAKAT_SMTP_PASSWORD }}
PAKAT_API_KEY: ${{ secrets.PAKAT_API_KEY }}
BOTTOM_CONTENT_HTML: ${{ env.BOTTOM_CONTENT_HTML }}
TOP_CONTENT_HTML: ${{ env.TOP_CONTENT_HTML }}
SEND_ENV: "test"
IS_DARK: "false"
40 changes: 40 additions & 0 deletions .github/workflows/staging_dark.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: "🍊 Send email dark - Test"

on:
workflow_dispatch:

jobs:
send-email-for-test-users:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.0'
tools: composer:v2

- name: Install Composer dependencies
run: |
cd src
composer install --no-progress --optimize-autoloader --quiet

- name: Import BOTTOM_CONTENT_HTML_DARK and TOP_CONTENT_HTML_DARK into env
shell: bash
run: |
cd src
echo "BOTTOM_CONTENT_HTML_DARK=$(cat BOTTOM_CONTENT_HTML_DARK.txt)" >> $GITHUB_ENV
echo "TOP_CONTENT_HTML_DARK=$(cat TOP_CONTENT_HTML_DARK.txt)" >> $GITHUB_ENV

- name: Run script
run: php src/send_newsletter.php
env:
PAKAT_SMTP_USERNAME: ${{ secrets.PAKAT_SMTP_USERNAME }}
PAKAT_SMTP_PASSWORD: ${{ secrets.PAKAT_SMTP_PASSWORD }}
PAKAT_API_KEY: ${{ secrets.PAKAT_API_KEY }}
BOTTOM_CONTENT_HTML_DARK: ${{ env.BOTTOM_CONTENT_HTML_DARK }}
TOP_CONTENT_HTML_DARK: ${{ env.TOP_CONTENT_HTML_DARK }}
SEND_ENV: "test"
IS_DARK: "true"
40 changes: 2 additions & 38 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,47 +2,11 @@
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839

# User-specific stuff
.idea/**/workspace.xml
.idea/**/tasks.xml
.idea/**/usage.statistics.xml
.idea/**/dictionaries
.idea/**/shelf

# Generated files
.idea/**/contentModel.xml

# Sensitive or high-churn files
.idea/**/dataSources/
.idea/**/dataSources.ids
.idea/**/dataSources.local.xml
.idea/**/sqlDataSources.xml
.idea/**/dynamic.xml
.idea/**/uiDesigner.xml
.idea/**/dbnavigator.xml

# Gradle
.idea/**/gradle.xml
.idea/**/libraries

# Gradle and Maven with auto-import
# When using Gradle or Maven with auto-import, you should exclude module files,
# since they will be recreated, and may cause churn. Uncomment if using
# auto-import.
# .idea/artifacts
# .idea/compiler.xml
# .idea/jarRepositories.xml
# .idea/modules.xml
# .idea/*.iml
# .idea/modules
# *.iml
# *.ipr
.idea/

# CMake
cmake-build-*/

# Mongo Explorer plugin
.idea/**/mongoSettings.xml

# File-based project format
*.iws

Expand Down Expand Up @@ -70,4 +34,4 @@ fabric.properties
# Android studio 3.1+ serialized cache file
.idea/caches/build_file_checksums.ser

/vendor/
**/vendor/**
1 change: 1 addition & 0 deletions CNAME
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
newsletter.softwaretalks.ir
14 changes: 14 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
FROM php:8.0-cli-alpine

RUN apk add --update --no-cache zip libzip-dev icu-dev
RUN docker-php-ext-install zip
RUN docker-php-ext-install intl

RUN curl -sS https://getcomposer.org/installer | php -- --version=2.0.9 --install-dir=/usr/local/bin --filename=composer

COPY . /app/newsletter
WORKDIR /app/newsletter

RUN cd src && composer install

ENTRYPOINT ["php"]
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2021 Software Talks

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Loading