diff options
Diffstat (limited to '.github')
-rw-r--r-- | .github/FUNDING.yml | 1 | ||||
-rw-r--r-- | .github/ISSUE_TEMPLATE/bug-report.yml | 103 | ||||
-rw-r--r-- | .github/ISSUE_TEMPLATE/config.yml | 5 | ||||
-rw-r--r-- | .github/workflows/pages.yml (renamed from .github/workflows/docs.yml) | 49 |
4 files changed, 145 insertions, 13 deletions
diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml new file mode 100644 index 0000000..8913bb0 --- /dev/null +++ b/.github/FUNDING.yml @@ -0,0 +1 @@ +open_collective: flatpak diff --git a/.github/ISSUE_TEMPLATE/bug-report.yml b/.github/ISSUE_TEMPLATE/bug-report.yml new file mode 100644 index 0000000..b519ca3 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug-report.yml @@ -0,0 +1,103 @@ +--- +name: Bug Report +description: Report a bug or crash +labels: bug, +body: +- type: input + id: distribution + attributes: + label: "Operating System" + description: "Which operating system or Linux distribution are you using?" + placeholder: "e.g., Ubuntu 22.04, Arch Linux, FreeBSD" + validations: + required: true + +- type: dropdown + id: version + attributes: + label: "XDG Desktop Portal version" + description: "What version of XDG Desktop Portal are you using?" + options: + - "1.18" + - "1.17" + - "1.16" + - Git + - Other + validations: + required: true + +- type: input + id: version_other + attributes: + label: XDG Desktop Portal version (Other) + description: "If \"Other\" was selected above, what version of XDG Desktop Portal are you using?" + validations: + required: false + +- type: dropdown + id: desktop_environment + attributes: + label: "Desktop Environment" + description: "which desktop environment are you using?" + options: + - Deepin + - Cinnamon / MATE / Xfce + - GNOME + - KDE + - LXQt + - Pantheon (elementary OS) + - wlroots + - Other + validations: + required: true + +- type: input + id: desktop_environment_other + attributes: + label: Desktop Environment (Other) + description: "If \"Other\" was selected above, which desktop environment are you using?" + validations: + required: false + +- type: textarea + id: expected_behavior + attributes: + label: Expected Behavior + description: "What did you expect to happen?" + validations: + required: true + +- type: textarea + id: current_behavior + attributes: + label: Current Behavior + description: "What actually happened?" + validations: + required: true +- type: textarea + id: steps_to_reproduce + attributes: + label: Steps to Reproduce + description: "How do you trigger this bug? Please walk us through it step by step." + placeholder: | + 1. + 2. + 3. + ... + value: | + 1. + 2. + 3. + ... + validations: + required: true + +- type: textarea + id: additional_notes + attributes: + label: Anything else we should know? + validations: + required: false + +--- + diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml new file mode 100644 index 0000000..598d9ff --- /dev/null +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -0,0 +1,5 @@ +blank_issues_enabled: false +contact_links: + - name: Help/Support + url: https://matrix.to/#/#xdg-desktop-portals:matrix.org + about: Questions or issues about how to use and configure xdg-desktop-portal diff --git a/.github/workflows/docs.yml b/.github/workflows/pages.yml index d6f5704..ac155b9 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/pages.yml @@ -1,9 +1,18 @@ -name: Documentation +name: Documentation & Website on: [push, pull_request] +permissions: + contents: read + pages: write + id-token: write + +concurrency: + group: "pages" + cancel-in-progress: false + jobs: - docs: + build: runs-on: ubuntu-20.04 container: image: ubuntu:22.04 @@ -54,18 +63,32 @@ jobs: meson setup builddir -Ddocbook-docs=enabled meson compile -C builddir + - name: Build website + uses: actions/jekyll-build-pages@v1 + with: + source: ./doc/website + destination: ./_site + - name: Prepare docs working-directory: builddir/doc run: | - mkdir published-docs - mv portal-docs.html ./published-docs/index.html - mv redirect.html ./published-docs/portal-docs.html - mv docbook.css ./published-docs + mkdir ../../_site/docs/ + mv portal-docs.html ../../_site/docs/index.html + mv redirect.html ../../_site/docs/portal-docs.html + mv docbook.css ../../_site/docs/ - - name: Deploy docs - uses: peaceiris/actions-gh-pages@v3 - if: ${{ (github.event_name == 'push' && github.ref == 'refs/heads/main') }} - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - publish_dir: ./builddir/doc/published-docs/ - destination_dir: ./ + - name: Upload artifact + uses: actions/upload-pages-artifact@v2 + + # Deployment job + deploy: + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + runs-on: ubuntu-latest + needs: build + if: ${{ (github.event_name == 'push' && github.ref == 'refs/heads/main') }} + steps: + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v2 |