Skip to content

Release

Release #6

Workflow file for this run

name: Release
on:
workflow_dispatch:
push:
branches:
- next
env:
REGISTRY: ghcr.io
IMAGE_NAME: geostyler/geostyler-demo
jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout sources 🔰
uses: actions/checkout@v4
- name: Setup Node.js 20 👷🏻
uses: actions/setup-node@v4
with:
node-version: 20
- name: Install dependencies ⏬
run: npm ci
- name: Build artifacts 🏗️
run: npm run build
- name: Release 🚀
uses: cycjimmy/[email protected]
id: semantic
env:
GITHUB_TOKEN: ${{ secrets.GH_RELEASE_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Log in to the Container registry
if: steps.semantic.outputs.new_release_published == 'true'
uses: docker/login-action@3b8fed7e4b60203b2aa0ecc6c6d6d91d12c06760
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push Docker image
if: steps.semantic.outputs.new_release_published == 'true'
uses: docker/build-push-action@4f58ea79222b3b9dc2c8bbdd6debcef730109a75
with:
context: .
push: true
tags: |
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ steps.semantic.outputs.new_release_version }}