Skip to content

Commit 7f25710

Browse files
author
graial
committed
merge upstream
2 parents a2a2cfa + b7d5707 commit 7f25710

41 files changed

Lines changed: 2477 additions & 821 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/deploy.yml

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
name: Deploy to GitHub Pages
2+
3+
on:
4+
push:
5+
branches: ["main"]
6+
schedule:
7+
- cron: "0 7 * * *" # Runs every day at 07:00 UTC time
8+
9+
workflow_dispatch:
10+
11+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
12+
permissions:
13+
contents: read
14+
pages: write
15+
id-token: write
16+
17+
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
18+
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
19+
concurrency:
20+
group: "pages"
21+
cancel-in-progress: false
22+
23+
jobs:
24+
build:
25+
runs-on: ubuntu-latest
26+
steps:
27+
- name: Checkout
28+
uses: actions/checkout@v4
29+
30+
- name: Setup Ruby
31+
uses: ruby/setup-ruby@v1
32+
with:
33+
bundler-cache: true
34+
35+
- name: Setup Pages
36+
id: pages
37+
uses: actions/configure-pages@v5
38+
39+
- name: Build with Jekyll
40+
# Outputs to the './_site' directory by default
41+
run: bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}"
42+
env:
43+
JEKYLL_ENV: production
44+
45+
- name: Upload artifact
46+
# Automatically uploads an artifact from the './_site' directory by default
47+
uses: actions/upload-pages-artifact@v3
48+
49+
# Deployment job
50+
deploy:
51+
environment:
52+
name: github-pages
53+
url: ${{ steps.deployment.outputs.page_url }}
54+
55+
runs-on: ubuntu-latest
56+
needs: build
57+
58+
steps:
59+
- name: Deploy to GitHub Pages
60+
id: deployment
61+
uses: actions/deploy-pages@v4

.github/workflows/meetups.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,20 +29,20 @@ jobs:
2929
- name: Set up the formatted date, branch name and PR title
3030
run: |
3131
echo "FORMATTED_DATE=$(date +'%B %d, %Y')" >> $GITHUB_ENV
32-
echo "BRANCH_TO_MERGE=new-meetups-$(date +'%Y-%m-%d')" >> $GITHUB_ENV
32+
echo "BRANCH_TO_MERGE=meetups-update-$(date +'%Y-%m-%d')" >> $GITHUB_ENV
3333
echo "PULL_REQUEST_TITLE=$(cat ./pull_request_title.txt)" >> $GITHUB_ENV
3434
3535
- name: Check if there are any new meetups
3636
run: |
3737
if [[ -n $(git diff --name-only _data/meetups.yml) ]]; then
38-
echo "NEW_MEETUPS=true" >> $GITHUB_ENV
38+
echo "MEETUPS_CHANGED=true" >> $GITHUB_ENV
3939
else
40-
echo "NEW_MEETUPS=false" >> $GITHUB_ENV
40+
echo "MEETUPS_CHANGED=false" >> $GITHUB_ENV
4141
fi
4242
4343
- name: Commit New Meetups
4444
uses: stefanzweifel/git-auto-commit-action@v5
45-
if: ${{ env.NEW_MEETUPS == 'true' }}
45+
if: ${{ env.MEETUPS_CHANGED == 'true' }}
4646
with:
4747
# Optional. Commit message for the created commit.
4848
# Defaults to "Apply automatic changes"
@@ -106,7 +106,7 @@ jobs:
106106
create_branch: true
107107

108108
- name: Create Pull Request
109-
if: ${{ env.NEW_MEETUPS == 'true' }}
110-
run: gh pr create -B main -H ${{ env.BRANCH_TO_MERGE }} --title "${{ env.PULL_REQUEST_TITLE }}" --body-file "./new_meetups.md"
109+
if: ${{ env.MEETUPS_CHANGED == 'true' }}
110+
run: gh pr create -B ${{ github.head_ref || github.ref_name }} -H ${{ env.BRANCH_TO_MERGE }} --title "${{ env.PULL_REQUEST_TITLE }}" --body-file "./pull_request_body.md"
111111
env:
112112
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/verify.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,6 @@ jobs:
1717

1818
- name: Verify Meetups Data
1919
run: bundle exec rake verify_meetups
20+
21+
- name: Verify Website build
22+
run: bundle exec jekyll build

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
_site
22
.jekyll-metadata
33
bin/
4-
new_meetups.md
54
pull_request_title.txt
5+
pull_request_body.md

.projections.json

Lines changed: 0 additions & 3 deletions
This file was deleted.

Dangerfile

Lines changed: 0 additions & 13 deletions
This file was deleted.

Gemfile

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,14 @@
11
source 'https://rubygems.org'
22

33
ruby File.read(".ruby-version").strip
4-
#ruby-gemset=ruby-conferences
54

6-
gem 'danger'
7-
gem 'danger-commit_lint'
85
gem 'html-proofer'
96
gem 'jekyll'
107
gem 'rake'
118
gem 'graphql-client', '~> 0.23.0'
129
gem 'frozen_record', '~> 0.27.2'
1310
gem 'countries', '~> 6.0'
11+
gem 'icalendar', '~> 2.10'
1412

1513
group :jekyll_plugins do
1614
gem 'jekyll-feed'

Gemfile.lock

Lines changed: 5 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -24,61 +24,27 @@ GEM
2424
timers (~> 4.1)
2525
base64 (0.2.0)
2626
bigdecimal (3.1.8)
27-
claide (1.1.0)
28-
claide-plugins (0.9.2)
29-
cork
30-
nap
31-
open4 (~> 1.3)
3227
colorator (1.1.0)
33-
colored2 (3.1.2)
3428
concurrent-ruby (1.3.3)
3529
connection_pool (2.4.1)
3630
console (1.16.2)
3731
fiber-local
38-
cork (0.3.0)
39-
colored2 (~> 3.1)
4032
countries (6.0.1)
4133
unaccent (~> 0.3)
42-
danger (9.2.0)
43-
claide (~> 1.0)
44-
claide-plugins (>= 0.9.2)
45-
colored2 (~> 3.1)
46-
cork (~> 0.1)
47-
faraday (>= 0.9.0, < 3.0)
48-
faraday-http-cache (~> 2.0)
49-
git (~> 1.7)
50-
kramdown (~> 2.3)
51-
kramdown-parser-gfm (~> 1.0)
52-
no_proxy_fix
53-
octokit (~> 5.0)
54-
terminal-table (>= 1, < 4)
55-
danger-commit_lint (0.0.7)
56-
danger-plugin-api (~> 1.0)
57-
danger-plugin-api (1.0.0)
58-
danger (> 2.0)
5934
drb (2.2.1)
6035
em-websocket (0.5.3)
6136
eventmachine (>= 0.12.9)
6237
http_parser.rb (~> 0)
6338
ethon (0.16.0)
6439
ffi (>= 1.15.0)
6540
eventmachine (1.2.7)
66-
faraday (2.7.4)
67-
faraday-net_http (>= 2.0, < 3.1)
68-
ruby2_keywords (>= 0.0.4)
69-
faraday-http-cache (2.4.1)
70-
faraday (>= 0.8)
71-
faraday-net_http (3.0.2)
7241
ffi (1.17.0)
7342
fiber-local (1.0.0)
7443
fiber-storage (1.0.0)
7544
forwardable-extended (2.6.0)
7645
frozen_record (0.27.2)
7746
activemodel
78-
git (1.13.2)
79-
addressable (~> 2.8)
80-
rchardet (~> 1.8)
81-
google-protobuf (4.27.1)
47+
google-protobuf (4.27.5)
8248
bigdecimal
8349
rake (>= 13)
8450
graphql (2.3.14)
@@ -100,6 +66,9 @@ GEM
10066
http_parser.rb (0.8.0)
10167
i18n (1.14.5)
10268
concurrent-ruby (~> 1.0)
69+
icalendar (2.10.2)
70+
ice_cube (~> 0.16)
71+
ice_cube (0.17.0)
10372
io-event (1.1.6)
10473
jekyll (4.3.3)
10574
addressable (~> 2.4)
@@ -135,15 +104,9 @@ GEM
135104
mercenary (0.4.0)
136105
mini_portile2 (2.8.6)
137106
minitest (5.25.1)
138-
nap (1.1.0)
139-
no_proxy_fix (0.1.2)
140107
nokogiri (1.16.5)
141108
mini_portile2 (~> 2.8.2)
142109
racc (~> 1.4)
143-
octokit (5.6.1)
144-
faraday (>= 1, < 3)
145-
sawyer (~> 0.9)
146-
open4 (1.3.4)
147110
pathutil (0.16.2)
148111
forwardable-extended (~> 2.6)
149112
pdf-reader (2.11.0)
@@ -159,19 +122,14 @@ GEM
159122
rb-fsevent (0.11.2)
160123
rb-inotify (0.11.1)
161124
ffi (~> 1.0)
162-
rchardet (1.8.0)
163125
rexml (3.3.6)
164126
strscan
165127
rouge (4.3.0)
166128
ruby-rc4 (0.1.5)
167-
ruby2_keywords (0.0.5)
168129
safe_yaml (1.0.5)
169130
sass-embedded (1.77.5)
170131
google-protobuf (>= 3.25, < 5.0)
171132
rake (>= 13)
172-
sawyer (0.9.2)
173-
addressable (>= 2.3.5)
174-
faraday (>= 0.17.3, < 3)
175133
securerandom (0.3.1)
176134
strscan (3.1.0)
177135
terminal-table (3.0.2)
@@ -193,11 +151,10 @@ PLATFORMS
193151

194152
DEPENDENCIES
195153
countries (~> 6.0)
196-
danger
197-
danger-commit_lint
198154
frozen_record (~> 0.27.2)
199155
graphql-client (~> 0.23.0)
200156
html-proofer
157+
icalendar (~> 2.10)
201158
jekyll
202159
jekyll-feed
203160
rake

README.md

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,8 @@ The list of events is driven by the conferences file in the `_data` directory -
3838

3939
**Conferences**
4040

41-
The file to be changed is `_data/conferences.yml`. It is NOT order-dependent.
42-
Put your conference in the YAML file at the end.
43-
The page will sort the conferences by `start_date`.
41+
The file to be changed is `_data/conferences.yml`.
42+
This file is order-dependent. Put your conference in the YAML file sorted by its `start_date`.
4443

4544
Here is a list of the keys that can be used:
4645

@@ -60,19 +59,20 @@ Extra keys for the upcoming events:
6059
* `cfp_open_date`: The date when the CFP was opened - ISO8601 formatted (yyyy-mm-dd).
6160
* `cfp_close_date`: If there is a CFP deadline, enter that here - ISO8601 formatted (yyyy-mm-dd).
6261
* `cfp_link`: A link to the CFP submission page.
63-
* `status`: Typically you want to put "Canceled", "Postponed" or "To be announced" here.
64-
* `date_precision`: Controls the precision of the `start_date` and `end_date` when the conference dates aren't announced just yet but it's confirmed that the conference is happening. Possible values: `full` (implicit default), `month` or `year`. The `start_date` and `end_date` fields still need to be fully formatted ISO8601 dates, you can put the last day of the month/year in it so it also gets ordered properly.
65-
* `announced_on`: The date on which the conference was announced - ISO8601 formatted (yyyy-mm-dd). This date is used as the publish date for the [RSS feed](https://rubyconferences.org/feed.xml) so people can stay up to date with newly announced conferences.
62+
* `status`: Typically you want to put "Cancelled", "Postponed" or "To be announced" here.
63+
* `date_precision`: Controls the precision of the `start_date` and `end_date` when the conference dates aren't announced just yet, but it's confirmed that the conference is happening. Possible values: `full` (implicit default), `month` or `year`. The `start_date` and `end_date` fields still need to be fully formatted ISO8601 dates, you can put the last day of the month/year in it so it also gets ordered properly.
64+
* `announced_on`: The date on which the conference was announced - ISO8601 formatted (yyyy-mm-dd). This date is used as the publishing date for the [RSS feed](https://rubyconferences.org/feed.xml) so people can stay up to date with newly announced conferences.
6665

6766
Extra keys for the past events:
6867

6968
* `video_link`: A url to the videos for the event.
7069

7170
**Meetups**
7271

73-
The file to be changed is `_data/meetups.yml`. It is NOT order-dependent.
74-
Put your meetup in the YAML file at the end.
75-
The page will sort the conferences by `date`.
72+
The file to be changed is `_data/meetups.yml`.
73+
This file is order-dependent. Put your meetup in the YAML file sorted by its date.
74+
Otherwise, put the meetup at the end of the YAML file and run `rake sort_meetups`.
75+
Please make sure to preserve any comments in the YAML file.
7676

7777
Here is a list of the keys that can be used:
7878

@@ -87,6 +87,7 @@ Here is a list of the keys that can be used:
8787
* ZZZ - timezone (e.g. CDT or EST)
8888
* `end_time`: The end time of the event - ISO8601 formatted as (hh:mm:ss ZZZ) using same values as `start_time`
8989
* `url`: The url for the event.
90+
* `status`: Typically you want to put "Cancelled" or "Postponed" here.
9091

9192
## Getting started
9293

0 commit comments

Comments
 (0)