add TimeManager and MapFilter plugins #529
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: QWC2 Build | |
| on: [push] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/[email protected] | |
| - name: Checkout submodules | |
| shell: bash | |
| run: | | |
| auth_header="$(git config --local --get http.https://github.com/.extraheader)" | |
| git submodule sync --recursive | |
| git -c "http.extraheader=$auth_header" -c protocol.version=2 submodule update --init --force --recursive --depth=1 | |
| - name: Use Node.js | |
| uses: actions/[email protected] | |
| with: | |
| node-version: '20.x' | |
| - name: Install all required dependencies | |
| run: yarn install | |
| - name: Compile a deployable application bundle | |
| run: yarn run prod | |
| - name: Get version tag | |
| id: get_tag | |
| run: | | |
| if [ ${{ startsWith(github.ref, 'refs/tags/') }} = true ]; then | |
| echo "tag=latest,${GITHUB_REF:10}" >> $GITHUB_OUTPUT | |
| else | |
| echo "tag=latest" >> $GITHUB_OUTPUT | |
| fi | |
| - name: Build and publish sogis-map-viewer container | |
| uses: elgohr/Publish-Docker-Github-Action@v5 | |
| with: | |
| name: sourcepole/sogis-map-viewer | |
| username: ${{ secrets.DOCKER_HUB_USER }} | |
| password: ${{ secrets.DOCKER_HUB_PASSWORD }} | |
| tags: "${{ steps.get_tag.outputs.tag }}" |