@@ -2,7 +2,7 @@ name: docs
22
33on :
44 push :
5- branches : [master ]
5+ branches : [main ]
66 paths :
77 - " .github/workflows/docs.yml"
88 - " gdk4/**"
6161 - run : python3 ./generator.py --embed-docs --yes ./
6262 - run : echo "RELEASE=$(echo '${{ github.event.release.tag_name }}' | grep -Po '(\d+)\.(\d+)')" >> ${GITHUB_ENV}
6363 - run : echo "DEST=$(if [ "$GITHUB_EVENT_NAME" == "release" ]; then echo 'stable/${{ env.RELEASE }}'; else echo 'git'; fi)" >> ${GITHUB_ENV}
64- - run : echo "RUSTDOCFLAGS=$(eval python3 ./gir-rustdoc/gir-rustdoc.py --pages-url 'https://gtk-rs.org/gtk4-rs/' --default-branch 'master ' pre-docs | xargs)" >> ${GITHUB_ENV}
64+ - run : echo "RUSTDOCFLAGS=$(eval python3 ./gir-rustdoc/gir-rustdoc.py --pages-url 'https://gtk-rs.org/gtk4-rs/' --default-branch 'main ' pre-docs | xargs)" >> ${GITHUB_ENV}
6565 env :
6666 RUSTDOCFLAGS : >
6767 --extern-html-root-url=wayland_client=https://smithay.github.io/wayland-rs/
@@ -107,7 +107,7 @@ jobs:
107107
108108 sed -i 's|section-tree-widget.html|https://docs.gtk.org/gtk4/section-tree-widget.html|g' target/doc/gtk4/struct.TreeView.html
109109 - name : GTK Docs Images
110- if : ${{ (github.event_name == 'push' && github.ref == 'refs/heads/master ') || github.event_name == 'release' }}
110+ if : ${{ (github.event_name == 'push' && github.ref == 'refs/heads/main ') || github.event_name == 'release' }}
111111 run : |
112112 git clone --depth=1 https://gitlab.gnome.org/GNOME/gtk --no-checkout ./gtk-src
113113 cd ./gtk-src
@@ -116,16 +116,16 @@ jobs:
116116 git checkout main
117117 mv ./docs/reference/gtk/images/*.png ../target/doc/gtk4
118118 - name : Grab gtk-rs LOGO
119- if : ${{ (github.event_name == 'push' && github.ref == 'refs/heads/master ') || github.event_name == 'release' }}
119+ if : ${{ (github.event_name == 'push' && github.ref == 'refs/heads/main ') || github.event_name == 'release' }}
120120 run : |
121- wget https://raw.githubusercontent.com/gtk-rs/gtk-rs.github.io/master /logo/gtk-rs-16.png -O ./target/doc/favicon-16x16.png
122- wget https://raw.githubusercontent.com/gtk-rs/gtk-rs.github.io/master /logo/gtk-rs-32.png -O ./target/doc/favicon-32x32.png
123- wget https://raw.githubusercontent.com/gtk-rs/gtk-rs.github.io/master /logo/gtk-rs-256.png -O ./target/doc/rust-logo.png
124- wget https://raw.githubusercontent.com/gtk-rs/gtk-rs.github.io/master /logo/gtk-rs.svg -O ./target/doc/rust-logo.svg
125- wget https://raw.githubusercontent.com/gtk-rs/gtk-rs.github.io/master /logo/gtk-rs.svg -O ./target/doc/favicon.svg
121+ wget https://raw.githubusercontent.com/gtk-rs/gtk-rs.github.io/main /logo/gtk-rs-16.png -O ./target/doc/favicon-16x16.png
122+ wget https://raw.githubusercontent.com/gtk-rs/gtk-rs.github.io/main /logo/gtk-rs-32.png -O ./target/doc/favicon-32x32.png
123+ wget https://raw.githubusercontent.com/gtk-rs/gtk-rs.github.io/main /logo/gtk-rs-256.png -O ./target/doc/rust-logo.png
124+ wget https://raw.githubusercontent.com/gtk-rs/gtk-rs.github.io/main /logo/gtk-rs.svg -O ./target/doc/rust-logo.svg
125+ wget https://raw.githubusercontent.com/gtk-rs/gtk-rs.github.io/main /logo/gtk-rs.svg -O ./target/doc/favicon.svg
126126 - name : deploy
127127 uses : peaceiris/actions-gh-pages@v4
128- if : ${{ (github.event_name == 'push' && github.ref == 'refs/heads/master ') || github.event_name == 'release' }}
128+ if : ${{ (github.event_name == 'push' && github.ref == 'refs/heads/main ') || github.event_name == 'release' }}
129129 with :
130130 github_token : ${{ secrets.GITHUB_TOKEN }}
131131 publish_dir : ./target/doc/
@@ -135,7 +135,7 @@ jobs:
135135 - run : python3 ./gir-rustdoc/gir-rustdoc.py --project-title 'GTK 4 Rust bindings' html-index --early-section 'Book' '<ul><li><a href="stable/latest/book">Latest stable</a></li></ul>'
136136 - name : deploy index page
137137 uses : peaceiris/actions-gh-pages@v4
138- if : ${{ github.event_name == 'push' && github.ref == 'refs/heads/master ' }}
138+ if : ${{ github.event_name == 'push' && github.ref == 'refs/heads/main ' }}
139139 with :
140140 github_token : ${{ secrets.GITHUB_TOKEN }}
141141 publish_dir : ./public/
0 commit comments