-
Notifications
You must be signed in to change notification settings - Fork 32
RFC: Complete redesign of mruby.org — new visual identity, Jekyll 4, automated data pipeline, and CI-driven deployment #262
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
Changes from all commits
6e56e89
91c586a
cbbc9e9
059cd7f
db665af
ed5905b
fd0ec83
5e85fd1
9100500
72071be
87bbefe
5002caa
2039877
2f19cd6
3ef8c46
9ca34f8
1b77b08
fa4cc9c
639ec30
6c5e2d3
9bc6453
258d690
e07f3d4
ada908e
d5ba06a
804fee1
fe2f19a
2aca136
352d0e0
4aa2893
cdfb7d2
42bacc3
859c446
98d4b80
c035057
77f74ae
032947c
a36e9c8
b28e57e
6f7a93f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,53 @@ | ||
| name: Pages | ||
|
|
||
| on: | ||
| push: | ||
| branches: [master] | ||
| workflow_dispatch: | ||
|
|
||
| permissions: | ||
| contents: read | ||
| pages: write | ||
| id-token: write | ||
|
|
||
| concurrency: | ||
| group: pages | ||
| cancel-in-progress: false | ||
|
|
||
| jobs: | ||
| build: | ||
| if: github.repository == 'mruby/mruby.github.io' | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Set up Ruby | ||
| uses: ruby/setup-ruby@v1 | ||
| with: | ||
| ruby-version: .ruby-version | ||
| bundler-cache: true | ||
|
|
||
| - name: Configure GitHub Pages | ||
| uses: actions/configure-pages@v5 | ||
|
|
||
| - name: Generate and build | ||
| run: bundle exec rake build | ||
| env: | ||
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
| JEKYLL_ENV: production | ||
|
|
||
| - name: Upload artifact | ||
| uses: actions/upload-pages-artifact@v3 | ||
|
|
||
| deploy: | ||
| if: github.repository == 'mruby/mruby.github.io' | ||
| environment: | ||
| name: github-pages | ||
| url: ${{ steps.deployment.outputs.page_url }} | ||
| runs-on: ubuntu-latest | ||
| needs: build | ||
| steps: | ||
| - name: Deploy to GitHub Pages | ||
| id: deployment | ||
| uses: actions/deploy-pages@v4 | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,6 @@ | ||
| _site | ||
| mruby | ||
| /docs/api/ | ||
| /.bundle/ | ||
| /vendor/ | ||
| .worktrees |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| 4.0.1 | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The Ruby version |
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,18 +1,11 @@ | ||
| source 'https://rubygems.org' | ||
|
|
||
| gem 'github-pages', group: :jekyll_plugins | ||
|
|
||
| group :jekyll_plugins do | ||
| gem 'jekyll-avatar', '~> 0.8.0' | ||
| gem 'jekyll-feed' | ||
| gem 'jekyll-sitemap' | ||
| end | ||
|
|
||
| group :scripts do | ||
| gem 'mgem' | ||
| gem 'git' | ||
|
|
||
| # API Docs | ||
| gem 'yard-mruby' | ||
| gem 'yard-coderay' | ||
| end | ||
| gem 'irb' | ||
| gem 'jekyll' | ||
| gem 'jekyll-avatar' | ||
| gem 'jekyll-feed' | ||
| gem 'jekyll-sitemap' | ||
| gem 'mgem' | ||
| gem 'rake' | ||
| gem 'yard-coderay' | ||
| gem 'yard-mruby' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The push trigger is restricted to
master, so when changes are merged tomain(the active default branch in this repo) this workflow will never auto-run and Pages won’t be rebuilt/deployed unless someone manually dispatches it. Update the branch filter to include the branch that actually receives production merges.Useful? React with 👍 / 👎.