Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GitHub actions #789

Merged
merged 2 commits into from
Jan 16, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions .github/workflows/generate-documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,25 +16,25 @@ jobs:
node-version: ['18.x']

steps:
- name: Checkout docs branch
- name: Checkout master branch
uses: actions/checkout@v4
with:
ref: docs
# reset on master branch
- name: Reset master branch last commit
run: git reset origin/master --hard
ref: master
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
# generate the documentation
- run: npm install
- run: npm run docs
# commit and push the changes on the docs branch
- name: Commit docs changes
run: |
git checkout -b docs
git config --global user.name 'VCity Github Action'
git config --global user.email '[email protected]'
git add .
git commit -m "Documentation update"
git push origin docs
git push --set-upstream origin docs --force

Loading