Skip to content

Bump package version #411

Bump package version

Bump package version #411

Workflow file for this run

name: QWC2 Build
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- 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/setup-node@v1
with:
node-version: '18.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 ::set-output name=tag::latest,${GITHUB_REF:10}
else
echo ::set-output name=tag::latest
fi
- name: Build and publish sogis-map-viewer container
uses: elgohr/[email protected]
with:
name: sourcepole/sogis-map-viewer
username: ${{ secrets.DOCKER_HUB_USER }}
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
tags: "${{ steps.get_tag.outputs.tag }}"