mirror of
https://github.com/RGBCube/bonfire.v
synced 2025-07-28 14:37:44 +00:00
DRY
This commit is contained in:
parent
6c417bda20
commit
88c5c713aa
1 changed files with 10 additions and 7 deletions
17
.github/workflows/deploy-docs.yml
vendored
17
.github/workflows/deploy-docs.yml
vendored
|
@ -2,6 +2,9 @@ name: Deploy Docs
|
||||||
|
|
||||||
on: push
|
on: push
|
||||||
|
|
||||||
|
env:
|
||||||
|
project-name: bonfire
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
deploy-docs:
|
deploy-docs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
@ -22,13 +25,13 @@ jobs:
|
||||||
|
|
||||||
- name: Generate Docs
|
- name: Generate Docs
|
||||||
run: |
|
run: |
|
||||||
mv ./src ./bonfire.v # For the docs header
|
mv ./src ./${{ env.project-name }}.v # For the docs header
|
||||||
cp ./README.md ./bonfire.v/ # For the README to be included in the docs.
|
cp ./README.md ./${{ env.project-name }}.v/ # For the README to be included in the docs.
|
||||||
v doc -readme -f html -o ./ -m ./bonfire.v
|
v doc -readme -f html -o ./ -m ./${{ env.project-name }}.v
|
||||||
|
|
||||||
rm -rf ./site/docs/bonfire || true
|
rm -rf ./site/docs/${{ env.project-name }} || true
|
||||||
mkdir -p ./site/docs/bonfire
|
mkdir -p ./site/docs/${{ env.project-name }}
|
||||||
cp -r ./_docs/* ./site/docs/bonfire/
|
cp -r ./_docs/* ./site/docs/${{ env.project-name }}/
|
||||||
|
|
||||||
- name: Add Private Key To SSH Agent
|
- name: Add Private Key To SSH Agent
|
||||||
uses: webfactory/ssh-agent@v0.7.0
|
uses: webfactory/ssh-agent@v0.7.0
|
||||||
|
@ -44,5 +47,5 @@ jobs:
|
||||||
git config user.email "actions@users.noreply.github.com"
|
git config user.email "actions@users.noreply.github.com"
|
||||||
|
|
||||||
git add ./
|
git add ./
|
||||||
git commit -m "Deploy bonfire.v docs"
|
git commit -m "Deploy ${{ env.project-name }}.v docs"
|
||||||
git push git@github.com:RGBCube/rgbcube.github.io master
|
git push git@github.com:RGBCube/rgbcube.github.io master
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue