mirror of
https://github.com/OMGeeky/advisory-db.git
synced 2025-12-29 15:56:07 +01:00
Uses the flow suggested here: https://github.com/actions/checkout#push-a-commit-using-the-built-in-token
28 lines
662 B
YAML
28 lines
662 B
YAML
name: Publish Web
|
|
|
|
on:
|
|
push:
|
|
branches: master
|
|
|
|
jobs:
|
|
publish-web:
|
|
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.4
|
|
- run: |
|
|
if [ ! -f $HOME/.cargo/bin/rustsec-admin ]; then
|
|
cargo install rustsec-admin --vers 0.3.4
|
|
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
|