@@ -2,7 +2,7 @@ name: docs
2
2
3
3
on :
4
4
push :
5
- branches : [master ]
5
+ branches : [main ]
6
6
paths :
7
7
- " .github/workflows/docs.yml"
8
8
- " gdk4/**"
61
61
- run : python3 ./generator.py --embed-docs --yes ./
62
62
- run : echo "RELEASE=$(echo '${{ github.event.release.tag_name }}' | grep -Po '(\d+)\.(\d+)')" >> ${GITHUB_ENV}
63
63
- 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}
65
65
env :
66
66
RUSTDOCFLAGS : >
67
67
--extern-html-root-url=wayland_client=https://smithay.github.io/wayland-rs/
@@ -107,7 +107,7 @@ jobs:
107
107
108
108
sed -i 's|section-tree-widget.html|https://docs.gtk.org/gtk4/section-tree-widget.html|g' target/doc/gtk4/struct.TreeView.html
109
109
- 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' }}
111
111
run : |
112
112
git clone --depth=1 https://gitlab.gnome.org/GNOME/gtk --no-checkout ./gtk-src
113
113
cd ./gtk-src
@@ -116,16 +116,16 @@ jobs:
116
116
git checkout main
117
117
mv ./docs/reference/gtk/images/*.png ../target/doc/gtk4
118
118
- 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' }}
120
120
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
126
126
- name : deploy
127
127
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' }}
129
129
with :
130
130
github_token : ${{ secrets.GITHUB_TOKEN }}
131
131
publish_dir : ./target/doc/
@@ -135,7 +135,7 @@ jobs:
135
135
- 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>'
136
136
- name : deploy index page
137
137
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 ' }}
139
139
with :
140
140
github_token : ${{ secrets.GITHUB_TOKEN }}
141
141
publish_dir : ./public/
0 commit comments