@@ -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/**" 
6262      - run : python3 ./generator.py --embed-docs --yes ./ 
6363      - run : echo "RELEASE=$(echo '${{ github.event.release.tag_name }}' | grep -Po '(\d+)\.(\d+)')" >> ${GITHUB_ENV} 
6464      - run : echo "DEST=$(if [ "$GITHUB_EVENT_NAME" == "release" ]; then echo 'stable/${{ env.RELEASE }}'; else echo 'git'; fi)" >> ${GITHUB_ENV} 
65-       - 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} 
65+       - 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} 
6666        env :
6767          RUSTDOCFLAGS : > 
6868            --extern-html-root-url=wayland_client=https://smithay.github.io/wayland-rs/ 
@@ -108,7 +108,7 @@ jobs:
108108
109109          sed -i 's|section-tree-widget.html|https://docs.gtk.org/gtk4/section-tree-widget.html|g' target/doc/gtk4/struct.TreeView.html 
110110       - name : GTK Docs Images 
111-         if : ${{ (github.event_name == 'push' && github.ref == 'refs/heads/master ') || github.event_name == 'release' }} 
111+         if : ${{ (github.event_name == 'push' && github.ref == 'refs/heads/main ') || github.event_name == 'release' }} 
112112        run : | 
113113          git clone --depth=1 https://gitlab.gnome.org/GNOME/gtk --no-checkout ./gtk-src 
114114          cd ./gtk-src 
@@ -117,16 +117,16 @@ jobs:
117117          git checkout main 
118118          mv ./docs/reference/gtk/images/*.png ../target/doc/gtk4 
119119       - name : Grab gtk-rs LOGO 
120-         if : ${{ (github.event_name == 'push' && github.ref == 'refs/heads/master ') || github.event_name == 'release' }} 
120+         if : ${{ (github.event_name == 'push' && github.ref == 'refs/heads/main ') || github.event_name == 'release' }} 
121121        run : | 
122-           wget https://raw.githubusercontent.com/gtk-rs/gtk-rs.github.io/master /logo/gtk-rs-16.png -O ./target/doc/favicon-16x16.png 
123-           wget https://raw.githubusercontent.com/gtk-rs/gtk-rs.github.io/master /logo/gtk-rs-32.png -O ./target/doc/favicon-32x32.png 
124-           wget https://raw.githubusercontent.com/gtk-rs/gtk-rs.github.io/master /logo/gtk-rs-256.png -O ./target/doc/rust-logo.png 
125-           wget https://raw.githubusercontent.com/gtk-rs/gtk-rs.github.io/master /logo/gtk-rs.svg -O ./target/doc/rust-logo.svg 
126-           wget https://raw.githubusercontent.com/gtk-rs/gtk-rs.github.io/master /logo/gtk-rs.svg -O ./target/doc/favicon.svg 
122+           wget https://raw.githubusercontent.com/gtk-rs/gtk-rs.github.io/main /logo/gtk-rs-16.png -O ./target/doc/favicon-16x16.png 
123+           wget https://raw.githubusercontent.com/gtk-rs/gtk-rs.github.io/main /logo/gtk-rs-32.png -O ./target/doc/favicon-32x32.png 
124+           wget https://raw.githubusercontent.com/gtk-rs/gtk-rs.github.io/main /logo/gtk-rs-256.png -O ./target/doc/rust-logo.png 
125+           wget https://raw.githubusercontent.com/gtk-rs/gtk-rs.github.io/main /logo/gtk-rs.svg -O ./target/doc/rust-logo.svg 
126+           wget https://raw.githubusercontent.com/gtk-rs/gtk-rs.github.io/main /logo/gtk-rs.svg -O ./target/doc/favicon.svg 
127127       - name : deploy 
128128        uses : peaceiris/actions-gh-pages@v4 
129-         if : ${{ (github.event_name == 'push' && github.ref == 'refs/heads/master ') || github.event_name == 'release' }} 
129+         if : ${{ (github.event_name == 'push' && github.ref == 'refs/heads/main ') || github.event_name == 'release' }} 
130130        with :
131131          github_token : ${{ secrets.GITHUB_TOKEN }} 
132132          publish_dir : ./target/doc/ 
@@ -136,7 +136,7 @@ jobs:
136136      - 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>' 
137137      - name : deploy index page 
138138        uses : peaceiris/actions-gh-pages@v4 
139-         if : ${{ github.event_name == 'push' && github.ref == 'refs/heads/master ' }} 
139+         if : ${{ github.event_name == 'push' && github.ref == 'refs/heads/main ' }} 
140140        with :
141141          github_token : ${{ secrets.GITHUB_TOKEN }} 
142142          publish_dir : ./public/ 
0 commit comments