Skip to content

Commit ac6c3b6

Browse files
committed
feed directory qa
1 parent c2b676e commit ac6c3b6

13 files changed

Lines changed: 1474 additions & 699 deletions

File tree

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
name: Deploy to GitHub Pages
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
workflow_dispatch:
7+
8+
permissions:
9+
contents: read
10+
pages: write
11+
id-token: write
12+
13+
concurrency:
14+
group: "pages"
15+
cancel-in-progress: false
16+
17+
jobs:
18+
build:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- name: Checkout
22+
uses: actions/checkout@v4
23+
24+
- name: Setup Ruby
25+
uses: ruby/setup-ruby@v1
26+
with:
27+
ruby-version: '3.3'
28+
bundler-cache: true
29+
30+
- name: Update feed data
31+
run: |
32+
cd astro-migration
33+
bundle install
34+
ruby bin/data-update
35+
36+
- name: Setup Node.js
37+
uses: actions/setup-node@v4
38+
with:
39+
node-version: '22'
40+
cache: 'npm'
41+
cache-dependency-path: astro-migration/package-lock.json
42+
43+
- name: Install dependencies
44+
run: |
45+
cd astro-migration
46+
npm ci
47+
48+
- name: Build Astro site
49+
run: |
50+
cd astro-migration
51+
npm run build
52+
53+
- name: Setup Pages
54+
uses: actions/configure-pages@v4
55+
56+
- name: Upload artifact
57+
uses: actions/upload-pages-artifact@v3
58+
with:
59+
path: astro-migration/dist
60+
61+
deploy:
62+
environment:
63+
name: github-pages
64+
url: ${{ steps.deployment.outputs.page_url }}
65+
runs-on: ubuntu-latest
66+
needs: build
67+
steps:
68+
- name: Deploy to GitHub Pages
69+
id: deployment
70+
uses: actions/deploy-pages@v4

astro-migration/Gemfile

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# frozen_string_literal: true
2+
3+
source 'https://rubygems.org'
4+
5+
gem 'jekyll', '~> 4.4'
6+
gem 'just-the-docs'
7+
8+
gem 'html2rss', git: 'https://github.com/html2rss/html2rss.git'
9+
gem 'html2rss-configs', git: 'https://github.com/html2rss/html2rss-configs.git'
10+
11+
group :jekyll_plugins do
12+
gem 'jekyll-feed', '~> 0.17'
13+
gem 'jekyll-loading-lazy'
14+
gem 'jekyll-sitemap'
15+
gem 'jekyll-target-blank'
16+
end
17+
18+
# Windows and JRuby does not include zoneinfo files, so bundle the tzinfo-data gem
19+
# and associated library.
20+
platforms :mingw, :x64_mingw, :mswin, :jruby do
21+
gem 'tzinfo', '~> 2.0'
22+
gem 'tzinfo-data'
23+
end
24+
25+
# Performance-booster for watching directories on Windows
26+
gem 'wdm', '~> 0.1.1', platforms: %i[mingw x64_mingw mswin]
27+
28+
group :development do
29+
gem 'rubocop', '~> 1.80'
30+
end

0 commit comments

Comments
 (0)