Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions .github/workflows/sitemap_hook.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
name: Deploy on new sitemap
name: Deploy on external content update

on:
workflow_dispatch:
repository_dispatch:
types: [sitemap_changed]
types: [sitemap_changed, community_projects_changed]

permissions:
contents: read
Expand All @@ -18,9 +19,11 @@ jobs:
uses: actions/checkout@v3
with:
submodules: "recursive"

- name: Update submodule
run: |
git submodule update --remote

- uses: actions-rs/toolchain@v1
with:
profile: minimal
Expand All @@ -29,13 +32,16 @@ jobs:
override: true

- uses: Swatinem/rust-cache@v2

- uses: davidB/rust-cargo-make@v1

- name: Pre Build
run: |
npm i

- name: Build
run: cargo make build

- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
Expand All @@ -47,7 +53,8 @@ jobs:
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: post_build

steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
uses: actions/deploy-pages@v2
Loading