Skip to content

Commit

Permalink
Merge pull request #47 from Kentico/gh-actions-migration
Browse files Browse the repository at this point in the history
Migrating CI to GH Actions
  • Loading branch information
petrsvihlik committed Mar 24, 2021
2 parents d23e579 + 50df9fa commit e01fd9a
Show file tree
Hide file tree
Showing 5 changed files with 37,285 additions and 9,861 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/integrate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

name: Build & Deploy

on:
push:
branches: [ source ]
pull_request:
branches: [ source ]

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [14.x]

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm run build
- name: Deploy 🚀
if: github.ref == 'refs/heads/source'
uses: JamesIves/github-pages-deploy-action@3.6.2
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: master
FOLDER: public
CLEAN: true # Automatically remove deleted files from the deploy branch
18 changes: 0 additions & 18 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Kentico GitHub Community site

[![Build Status](https://api.travis-ci.com/Kentico/kentico.github.io.svg?branch=source)](https://travis-ci.com/Kentico/kentico.github.io)
[![Node.js CI](https://github.com/Kentico/kentico.github.io/actions/workflows/node.js.yml/badge.svg)](https://github.com/Kentico/kentico.github.io/actions/workflows/node.js.yml)
[![Live](https://img.shields.io/badge/live-demo-brightgreen.svg)](https://kentico.github.io)
[![Stack Overflow](https://img.shields.io/badge/Stack%20Overflow-ASK%20NOW-FE7A16.svg?logo=stackoverflow&logoColor=white)](https://stackoverflow.com/tags/kentico-cloud)

Expand Down
Loading

0 comments on commit e01fd9a

Please sign in to comment.