1
0
This repository has been archived on 2026-04-22. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
easylogon-demo/.github/workflows/ci.yml
T
xfox111 5f34431b5a Pipelines fixes & community documentation (#2)
* - Removed scenario test overrides

* Fixed localization check issue

* Added CI/CD configs

* Updated README

* Added yarn install to CI/CD configs

* Update ci.yml

* Updated CI config to attach built bundle to release

* Added templates and documents to comply with GitHub Community Standards

* Updated CI.yml
2022-05-20 15:44:43 +03:00

50 lines
1.2 KiB
YAML

name: 'CI/CD pipeline'
on:
push:
branches:
- main
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: 'Use Node.js 16.x'
uses: actions/setup-node@v3
with:
node-version: '16.x'
cache: 'yarn'
- run: yarn install
- run: yarn build
- name: 'Drop artifacts'
uses: actions/upload-artifact@v3.0.0
with:
name: 'Build'
path: 'build'
- name: SSH Server Deploy
uses: kostya-ten/ssh-server-deploy@v4
with:
host: ezlog.app
username: ${{ secrets.prodUser }}
password: ${{ secrets.prodPwd }}
scp_source: 'build/*'
scp_target: '/var/www/demo.ezlog.app/'
- name: Pack bundle
uses: TheDoctor0/zip-release@0.4.1
with:
filename: ./EasyLogonDemo-Bundle.zip
path: 'build'
- name: Create GitHub Release
uses: ncipollo/release-action@v1
with:
tag: '${{ github.run_id }}/${{ github.run_number }}'
artifacts: 'EasyLogonDemo-Bundle.zip'
token: ${{ secrets.GH_TOKEN }}