Merge pull request #6 from engine3d-dev/update_webpage #19
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: ci | |
| on: | |
| push: | |
| branches: | |
| - main | |
| permissions: | |
| contents: write | |
| env: | |
| CURRENT_VERSION: "0.1" | |
| PRODUCTION: true | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - run: git fetch origin gh-pages --depth=1 | |
| - uses: actions/setup-python@v4 | |
| with: | |
| python-version: 3.x | |
| - run: sudo apt install doxygen | |
| - run: pip install -r requirements.txt | |
| - run: git config user.name ci-bot | |
| - run: git config user.email [email protected] | |
| - run: ./build.sh | |
| - run: mike delete -b gh-pages $CURRENT_VERSION | |
| continue-on-error: true | |
| - run: mike deploy -b gh-pages $CURRENT_VERSION | |
| - run: mike set-default -b gh-pages $CURRENT_VERSION | |
| - run: mike deploy -b gh-pages --push --update-aliases $CURRENT_VERSION latest |