Add pre-commit hooks and format codebase #102
Workflow file for this run
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 | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| push: | |
| branches: | |
| - main | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| container: | |
| image: ruby:3.3 | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: Build 4C website | |
| uses: ./.github/actions/build_website | |
| with: | |
| website-root-path: '' | |
| website-url: https://www.4c-multiphysics.org | |
| build-dir: ${{ github.workspace }}/website | |
| - name: Copy .htaccess | |
| run: cp $GITHUB_WORKSPACE/.htaccess $GITHUB_WORKSPACE/website/ | |
| - name: Upload website as artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: 4C-website | |
| path: | | |
| ${{ github.workspace }}/website/ | |
| retention-days: 1 | |
| include-hidden-files: true |