Skip to content

Merge pull request #29 from DHTMLX/next #239

Merge pull request #29 from DHTMLX/next

Merge pull request #29 from DHTMLX/next #239

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: Deploy To Site
# Controls when the action will run.
on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
branches: [ master, next, test ]
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v4
- id: vars
run: echo ::set-output name=short_ref::${GITHUB_REF#refs/*/}
- uses: actions/setup-node@v4
with:
node-version: '18.19.0'
- run: yarn install
- run: yarn build
- uses: docker/setup-buildx-action@v1
- uses: docker/login-action@v1
with:
username: ${{ secrets.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_TOKEN }}
registry: registry.webix.io
- uses: docker/build-push-action@v2
with:
context: .
push: true
tags: registry.webix.io/calendar-docs-alt:${{ steps.vars.outputs.short_ref }}
- run: curl "https://docs.dhtmlx.com/hooks/restart-docker?token=${{ secrets.RESTART_TOKEN }}&project=docs-calendar-alt-${{ steps.vars.outputs.short_ref }}"