Merge pull request #15 from openfedem/run-fmu-fix #11
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build home page | |
| on: | |
| push: | |
| branches: | |
| - main | |
| workflow_dispatch: | |
| jobs: | |
| build-web: | |
| name: Build the docs | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Install Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.10' | |
| - name: Install MkDocs | |
| run: pip install mkdocs mkdocs-material pymdown-extensions mkdocs-git-revision-date-localized-plugin | |
| - name: Silence hint on initial branch | |
| run: git config --global init.defaultBranch main | |
| - name: Check out source repository | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Build the web pages | |
| run: mkdocs build | |
| - name: Deploy on web server | |
| uses: SamKirkland/[email protected] | |
| with: | |
| server: ftp.openfedem.org | |
| username: openfedem.org | |
| password: ${{ secrets.FTP_ONE_PW }} | |
| local-dir: ./site/ |