Skip to content

Commit 9634e4c

Browse files
committed
rebase from master
2 parents a67ce23 + 30484e5 commit 9634e4c

File tree

481 files changed

+18241
-5848
lines changed

Some content is hidden

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

481 files changed

+18241
-5848
lines changed

.github/workflows/build.yml

Lines changed: 9 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ on:
66
- main
77
schedule:
88
- cron: 0 10 * * *
9+
pull_request:
910

1011
jobs:
1112
check-repo-owner:
@@ -31,7 +32,7 @@ jobs:
3132
submodules: true
3233
- uses: ruby/setup-ruby@v1
3334
with:
34-
ruby-version: 2.7
35+
ruby-version: 3.0
3536
bundler-cache: true
3637
- name: Install Dependencies
3738
run: |
@@ -40,18 +41,10 @@ jobs:
4041
- name: Build site with jekyll
4142
run: |
4243
bundle exec jekyll build -d build
43-
- name: Commit and Push to gh-pages
44-
run: |
45-
# https://github.com/helaili/jekyll-action/blob/master/entrypoint.sh#L49
46-
cd build
47-
touch .nojekyll
48-
git init
49-
git config user.name "${GITHUB_ACTOR}"
50-
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com"
51-
git add .
52-
git commit -m 'jekyll build from Action'
53-
git push --force https://${ADABOT_PAT}@github.com/${GITHUB_REPOSITORY}.git HEAD:gh-pages
54-
rm -fr .git
55-
cd ..
56-
env:
57-
ADABOT_PAT: ${{ secrets.ADABOT_PAT }}
44+
- name: Deploy
45+
uses: peaceiris/actions-gh-pages@v3
46+
with:
47+
github_token: ${{ secrets.GITHUB_TOKEN }}
48+
publish_dir: ./build
49+
cname: circuitpython.org
50+
if: github.event_name != 'pull_request'

.github/workflows/images.yml

Lines changed: 21 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,26 @@
1-
name: Compress images
2-
on: pull_request
1+
name: Compress Images
2+
on:
3+
pull_request:
4+
# Run Image Actions when JPG, JPEG, PNG or WebP files are added or changed.
5+
# See https://help.github.com/en/actions/automating-your-workflow-with-github-actions/workflow-syntax-for-github-actions#onpushpull_requestpaths for reference.
6+
paths:
7+
- '**.jpg'
8+
- '**.jpeg'
9+
- '**.png'
10+
- '**.webp'
311
jobs:
412
build:
13+
# Only run on Pull Requests within the same repository, and not from forks.
14+
if: github.event.pull_request.head.repo.full_name == github.repository
515
name: calibreapp/image-actions
616
runs-on: ubuntu-latest
717
steps:
8-
- uses: actions/checkout@v2
9-
- name: calibreapp/image-actions
10-
uses: docker://calibreapp/github-image-actions
11-
env:
12-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
18+
- name: Checkout Repo
19+
uses: actions/checkout@v2
20+
21+
- name: Compress Images
22+
uses: calibreapp/image-actions@main
23+
with:
24+
# The `GITHUB_TOKEN` is automatically generated by GitHub and scoped only to the repository that is currently running the action. By default, the action can’t update Pull Requests initiated from forked repositories.
25+
# See https://docs.github.com/en/actions/reference/authentication-in-a-workflow and https://help.github.com/en/articles/virtual-environments-for-github-actions#token-permissions
26+
githubToken: ${{ secrets.GITHUB_TOKEN }}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
_site
22
.sass-cache
33
.jekyll-metadata
4+
.jekyll-cache
45
.DS_Store
56
_drafts/
67
.bundle

.tool-versions

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ruby 2.7.2

Gemfile

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,7 @@ source "https://rubygems.org"
88
#
99
# This will help ensure the proper Jekyll version is running.
1010
# Happy Jekylling!
11-
# gem "jekyll", "~> 3.8.4"
12-
13-
14-
# If you want to use GitHub Pages, remove the "gem "jekyll"" above and
15-
# uncomment the line below. To upgrade, run `bundle update github-pages`.
16-
gem "github-pages", group: :jekyll_plugins
11+
gem "jekyll", "~> 4.2"
1712

1813
# If you have any plugins, put them here!
1914
group :jekyll_plugins do
@@ -29,3 +24,5 @@ group :development do
2924
gem 'image_processing'
3025
end
3126

27+
28+
gem "webrick", "~> 1.7"

0 commit comments

Comments
 (0)