file-transfer: return a value from task #1260
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Documentation | |
on: [push, pull_request] | |
jobs: | |
docs: | |
runs-on: ubuntu-20.04 | |
container: | |
image: ubuntu:22.04 | |
steps: | |
- name: Install dependencies | |
env: | |
DEBIAN_FRONTEND: noninteractive | |
run: | | |
apt-get update | |
apt-get upgrade -y | |
apt-get install -y --no-install-recommends \ | |
desktop-file-utils \ | |
fuse3 \ | |
gcc \ | |
gettext \ | |
gnome-desktop-testing \ | |
gtk-doc-tools \ | |
libcap2-bin \ | |
libflatpak-dev \ | |
libfontconfig1-dev \ | |
libfuse3-dev \ | |
libgdk-pixbuf-2.0-dev \ | |
libgeoclue-2-dev \ | |
libglib2.0-dev \ | |
libjson-glib-dev \ | |
libpipewire-0.3-dev \ | |
libportal-dev \ | |
libsystemd-dev \ | |
llvm \ | |
meson \ | |
python3-gi \ | |
shared-mime-info | |
- name: Install dependencies for doc builds | |
env: | |
DEBIAN_FRONTEND: noninteractive | |
run: | | |
apt-get install -y --no-install-recommends \ | |
ca-certificates \ | |
git \ | |
xmlto | |
- name: Check out xdg-desktop-portal | |
uses: actions/checkout@v3 | |
- name: Build docs | |
run: | | |
meson setup builddir -Ddocbook-docs=enabled | |
meson compile -C builddir | |
- 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 | |
- 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: ./ |