mirror of
https://github.com/rustsec/advisory-db.git
synced 2025-12-27 01:54:07 -05:00
28 lines
662 B
YAML
28 lines
662 B
YAML
name: Publish Web
|
|
|
|
on:
|
|
push:
|
|
branches: main
|
|
|
|
jobs:
|
|
publish-web:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
with:
|
|
ref: gh-pages
|
|
- uses: actions/cache@v3
|
|
with:
|
|
path: ~/.cargo/bin
|
|
key: rustsec-admin-v0.8.3
|
|
- run: |
|
|
if [ ! -f $HOME/.cargo/bin/rustsec-admin ]; then
|
|
cargo install rustsec-admin --vers 0.8.3
|
|
fi
|
|
rustsec-admin web .
|
|
git config user.name github-actions
|
|
git config user.email github-actions@github.com
|
|
git add .
|
|
git commit -m "Update gh-pages" || true
|
|
git push || true
|