feat(ci): adding ci pipelines

This commit is contained in:
Verissimo Ribeiro 2023-01-14 03:31:32 +00:00
parent 3d46e76d46
commit 88c09c5dc9
2 changed files with 49 additions and 0 deletions

View file

@ -0,0 +1,18 @@
name: CI Pipeline Push and Pull Request
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build-lib:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- run: npm install
- run: npm run build

View file

@ -0,0 +1,31 @@
name: CI Pipeline Release
on:
release:
types: [created]
jobs:
build-lib:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- run: npm install
- run: npm run build
- name: Zip Release
uses: TheDoctor0/zip-release@0.7.0
with:
type: 'zip'
filename: 'keywind-release-${{github.ref_name}}.zip'
path: 'theme/keywind'
- name: Upload Release
uses: ncipollo/release-action@v1.12.0
with:
artifacts: 'keywind-release-${{github.ref_name}}.zip'
token: ${{ secrets.GITHUB_TOKEN }}
allowUpdates: true