CI: set gtk-rs logo for rust docs
CI: set gtk-rs logo for rust docs
@@ -34,7 +34,16 @@ jobs:
command: doc
args: -p atk -p atk-sys -p gdk -p gdk-sys -p gdkx11 -p gdkx11-sys -p gtk -p gtk3-macros -p gtk-sys --features dox --no-deps
- run: echo "DEST=$(if [ "$GITHUB_EVENT_NAME" == "release" ]; then echo 'stable/${{ github.event.release.tag_name }}'; else echo 'git'; fi)" >> ${GITHUB_ENV}
- - run: echo ${{ env.DEST }}
+
+ - name: Grab gtk-rs LOGO
+ if: ${{ (github.event_name == 'push' && github.ref == 'refs/heads/master') || github.event_name == 'release' }}
+ run: |
+ sudo dnf install wget -y
+ wget https://raw.githubusercontent.com/gtk-rs/gtk-rs.github.io/master/logo/gtk-rs-16.png -o ./target/doc/favicon-16x16.png
+ wget https://raw.githubusercontent.com/gtk-rs/gtk-rs.github.io/master/logo/gtk-rs-32.png -o ./target/doc/favicon-32x32.png
+ wget https://raw.githubusercontent.com/gtk-rs/gtk-rs.github.io/master/logo/gtk-rs-256.png -o ./target/doc/rust-logo.png
+ wget https://raw.githubusercontent.com/gtk-rs/gtk-rs.github.io/master/logo/gtk-rs.svg -o ./target/doc/favicon.svg
+
- name: deploy
if: ${{ (github.event_name == 'push' && github.ref == 'refs/heads/master') || github.event_name == 'release' }}
uses: peaceiris/actions-gh-pages@v3
