From a3efac597749cad869f59f60879c624531ba3358 Mon Sep 17 00:00:00 2001 From: Tony Arcieri Date: Wed, 13 Jan 2021 06:00:38 -0800 Subject: [PATCH] Add "Publish Web" GitHub Action (#557) Automatically rebuilds the contents of the `gh-pages` branch on merge --- .github/workflows/publish-web.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/publish-web.yml diff --git a/.github/workflows/publish-web.yml b/.github/workflows/publish-web.yml new file mode 100644 index 0000000..1e39dea --- /dev/null +++ b/.github/workflows/publish-web.yml @@ -0,0 +1,26 @@ +name: Publish Web + +on: + push: + branches: master + +jobs: + publish: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + with: + ref: gh-pages + - uses: actions/cache@v1 + with: + path: ~/.cargo/bin + key: rustsec-admin-v0.3.3 + - run: cargo install rustsec-admin --vers 0.3.3 + - run: rustsec-admin web + - uses: peter-evans/create-pull-request@v3 + with: + base: gh-pages + branch: update-gh-pages + commit-message: Update gh-pages + title: Update gh-pages + token: ${{ secrets.GITHUB_TOKEN }}