diff --git a/.github/workflows/build-site.yml b/.github/workflows/build-site.yml new file mode 100644 index 0000000000..68c5ead455 --- /dev/null +++ b/.github/workflows/build-site.yml @@ -0,0 +1,62 @@ +name: Publish Website + +on: + pull_request: + paths: + - 'docs/site/**' + - '.github/workflows/build-site.yml' + push: + branches: + - master + paths: + - 'docs/site/**' + - '.github/workflows/build-site.yml' + workflow_dispatch: + +permissions: + contents: read + pages: write + id-token: write + +concurrency: + group: graalpy-site + cancel-in-progress: true + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Check out repository + uses: actions/checkout@v6 + + - name: Set up Ruby + uses: ruby/setup-ruby@v1 + with: + ruby-version: '3.2' + + - name: Install site dependencies + working-directory: docs/site + run: bundle install + + - name: Build site + working-directory: docs/site + env: + JEKYLL_ENV: production + run: bundle exec jekyll build + + - name: Upload GitHub Pages artifact + uses: actions/upload-pages-artifact@v5 + with: + path: docs/site/_site + + deploy: + if: github.event_name == 'push' && github.ref == 'refs/heads/master' + needs: build + runs-on: ubuntu-latest + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + steps: + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4 \ No newline at end of file diff --git a/docs/site/01-python-developers.md b/docs/site/01-python-developers.md index 37707202ed..9ad6752ea0 100644 --- a/docs/site/01-python-developers.md +++ b/docs/site/01-python-developers.md @@ -29,7 +29,7 @@ audience_identifier: python
Redirecting to the documentation for JVM Developers...
\ No newline at end of file +Redirecting to the documentation for JVM Developers...
diff --git a/docs/user/Python-Standalone-Applications.md b/docs/user/Python-Standalone-Applications.md index 70c0f85ca9..3025ce734f 100644 --- a/docs/user/Python-Standalone-Applications.md +++ b/docs/user/Python-Standalone-Applications.md @@ -13,7 +13,7 @@ The module bundles all your application's resources into a single file. ## Running Python Standalone Applications -To create an native executable from a Python file with its dependencies, use this command: +To create a native executable from a Python file with its dependencies, use this command: ```bash graalpy -m standalone native \