Skip to content

Commit 2691df7

Browse files
committed
Add GitHub Pages workflow for GraalPy site.
1 parent fdfe7e8 commit 2691df7

2 files changed

Lines changed: 63 additions & 1 deletion

File tree

.github/workflows/build-site.yml

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
name: Build and deploy website
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- 'docs/site/**'
7+
- '.github/workflows/build-site.yml'
8+
push:
9+
branches:
10+
- master
11+
paths:
12+
- 'docs/site/**'
13+
- '.github/workflows/build-site.yml'
14+
workflow_dispatch:
15+
16+
permissions:
17+
contents: read
18+
pages: write
19+
id-token: write
20+
21+
concurrency:
22+
group: graalpy-site
23+
cancel-in-progress: true
24+
25+
jobs:
26+
build:
27+
runs-on: ubuntu-latest
28+
steps:
29+
- name: Check out repository
30+
uses: actions/checkout@v6
31+
32+
- name: Set up Ruby
33+
uses: ruby/setup-ruby@v1
34+
with:
35+
ruby-version: '3.2'
36+
37+
- name: Install site dependencies
38+
working-directory: docs/site
39+
run: bundle install
40+
41+
- name: Build site
42+
working-directory: docs/site
43+
env:
44+
JEKYLL_ENV: production
45+
run: bundle exec jekyll build
46+
47+
- name: Upload GitHub Pages artifact
48+
uses: actions/upload-pages-artifact@v3
49+
with:
50+
path: docs/site/_site
51+
52+
deploy:
53+
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
54+
needs: build
55+
runs-on: ubuntu-latest
56+
environment:
57+
name: github-pages
58+
url: ${{ steps.deployment.outputs.page_url }}
59+
steps:
60+
- name: Deploy to GitHub Pages
61+
id: deployment
62+
uses: actions/deploy-pages@v4

docs/user/Python-Standalone-Applications.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ The module bundles all your application's resources into a single file.
1313
1414
## Running Python Standalone Applications
1515

16-
To create an native executable from a Python file with its dependencies, use this command:
16+
To create a native executable from a Python file with its dependencies, use this command:
1717

1818
```bash
1919
graalpy -m standalone native \

0 commit comments

Comments
 (0)