mirror of
https://github.com/OMGeeky/advisory-db.git
synced 2026-01-25 04:40:44 +01:00
Add "Publish Web" GitHub Action (#557)
Automatically rebuilds the contents of the `gh-pages` branch on merge
This commit is contained in:
26
.github/workflows/publish-web.yml
vendored
Normal file
26
.github/workflows/publish-web.yml
vendored
Normal file
@@ -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 }}
|
||||
Reference in New Issue
Block a user