diff --git a/.github/workflows/sitemap_hook.yml b/.github/workflows/sitemap_hook.yml index 6406d0b..6ae1d8a 100644 --- a/.github/workflows/sitemap_hook.yml +++ b/.github/workflows/sitemap_hook.yml @@ -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 @@ -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 @@ -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: @@ -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