mirror of
https://github.com/lukin/keywind.git
synced 2025-02-04 13:46:25 +00:00
feat(ci): adding ci pipelines
This commit is contained in:
parent
3d46e76d46
commit
88c09c5dc9
2 changed files with 49 additions and 0 deletions
18
.github/workflows/ci-pipeline-branch.yml
vendored
Normal file
18
.github/workflows/ci-pipeline-branch.yml
vendored
Normal 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
|
31
.github/workflows/ci-pipeline-release.yml
vendored
Normal file
31
.github/workflows/ci-pipeline-release.yml
vendored
Normal 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
|
||||
|
Loading…
Reference in a new issue