Skip to content

Commit de7e00e

Browse files
committed
Update GitHub Actions workflow and Jekyll configuration
- Updated actions/checkout and ruby/setup-ruby versions in the workflow. - Changed Ruby version to 3.4.2 and added bundler caching. - Modified publish step to use cloudflare/wrangler-action for deployment. - Enhanced _config.yml to exclude unnecessary files and set default layout. - Added default layout for pages in _layouts/default.html. - Updated index.md to improve structure and readability. Signed-off-by: DavidOsipov <[email protected]>
1 parent 090ba35 commit de7e00e

File tree

4 files changed

+48
-11
lines changed

4 files changed

+48
-11
lines changed

.github/workflows/jekyll-gh-pages.yml

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,28 +20,29 @@ jobs:
2020

2121
steps:
2222
- name: Checkout code
23-
uses: actions/checkout@v4
23+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
2424

2525
- name: Setup Ruby
26-
uses: ruby/setup-ruby@v1
26+
uses: ruby/setup-ruby@1a615958ad9d422dd932dc1d5823942ee002799f
2727
with:
28-
ruby-version: '3.0'
29-
28+
ruby-version: '3.4.2'
29+
cache: bundler
30+
3031
- name: Install dependencies
3132
run: |
3233
gem install bundler
3334
bundle install
3435
working-directory: site
3536

3637
- name: Build site
37-
run: bundle exec jekyll build --source site --destination build
38+
run: |
39+
bundle exec jekyll build
3840
working-directory: site
3941

4042
- name: Publish
41-
uses: cloudflare/pages-action@v1
43+
uses: cloudflare/wrangler-action@da0e0dfe58b7a431659754fdf3f186c529afbe65
4244
with:
4345
apiToken: ${{ secrets.CLOUDFLARE_TOKEN }}
4446
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
45-
projectName: "postquantum-feldman-vss"
46-
directory: "site/build"
47-
gitHubToken: ${{ secrets.GITHUB_TOKEN }}
47+
gitHubToken: ${{ secrets.GITHUB_TOKEN }}
48+
command: pages deploy .github/_site --project-name=postquantum-feldman-vss

site/_config.yml

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,23 @@ include:
1616
# Relative links configuration
1717
relative_links:
1818
enabled: true
19-
collections: true
19+
collections: true
20+
21+
# Exclude from processing
22+
exclude:
23+
- Gemfile
24+
- Gemfile.lock
25+
- node_modules
26+
- vendor
27+
- .sass-cache
28+
29+
# Set default layout for all pages
30+
defaults:
31+
-
32+
scope:
33+
path: "" # all files
34+
values:
35+
layout: "default"
36+
37+
# Base URL
38+
baseurl: ""

_layouts/default.html renamed to site/_layouts/default.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,4 @@ <h1>{{ site.title }}</h1>
2828
<p>&copy; {{ site.time | date: '%Y' }} David Osipov</p>
2929
</footer>
3030
</body>
31-
</html>
31+
</html>

site/index.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,26 @@ layout: default
33
title: Home
44
---
55

6+
# PostQuantum-Feldman-VSS
7+
68
{% include_relative ../README.md %}
9+
10+
## Frequently Asked Questions
11+
712
{% include_relative ../docs/FAQ.md %}
13+
14+
## Security
15+
816
{% include_relative ../SECURITY.md %}
17+
18+
## Code of Conduct
19+
920
{% include_relative ../CODE_OF_CONDUCT.md %}
21+
22+
## Contributing
23+
1024
{% include_relative ../CONTRIBUTING.md %}
25+
26+
## Documentation
27+
1128
{% include_relative ../docs/DOCUMENTATION.md %}

0 commit comments

Comments
 (0)