Skip to content

Merge pull request #45 from SUSE-Enceladus/language #34

Merge pull request #45 from SUSE-Enceladus/language

Merge pull request #45 from SUSE-Enceladus/language #34

Workflow file for this run

name: "Deploy site"
on:
push:
branches:
- "main"
workflow_dispatch:
# Allow manually running workflow
env:
OUTPUT: ./_site
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
build:
name: Build lektor website
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Install Lektor
run: |
python -m pip install --upgrade pip setuptools
python -m pip install lektor
- name: Build lektor website
run: lektor build -O '${{ env.OUTPUT }}'
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
deploy:
environment:
name: github-pages
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2