Skip to content

Commit

Permalink
fix: only deploy docs on main site on release
Browse files Browse the repository at this point in the history
  • Loading branch information
lleyton authored Aug 21, 2023
1 parent e1ad60c commit dfb0a87
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ name: Deploy Documentation to Pages
on:
# Runs on pushes targeting the default branch
push:
branches: ["main"]

release:
types: [published]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand Down Expand Up @@ -36,18 +38,19 @@ jobs:
run: git apply -v .github/workflows/nightly.patch
- name: Install dependencies
run: sudo dnf install --allowerasing -y meson vala-nightly valadoc-nightly gtk4-devel libgee-devel sass gi-docgen nodejs
- name: Build website
- name: Setup build
run: meson _build -Dgidoc=true
- name: Build with Ninja
- name: Build docs with Ninja
run: ninja
working-directory: ./_build
- name: Setup Pages
- name: Setup pages
uses: actions/configure-pages@v2
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
# Upload entire repository
path: "./_build/doc"
- name: Deploy to GitHub Pages
if: github.event.release
id: deployment
uses: actions/deploy-pages@v1

0 comments on commit dfb0a87

Please sign in to comment.