mirror of
https://github.com/spaytac/Casper.git
synced 2026-01-21 16:54:52 +00:00
48 lines
1.1 KiB
YAML
48 lines
1.1 KiB
YAML
name: NodeJS with Gulp
|
|
|
|
on:
|
|
push:
|
|
branches: [ "main" ]
|
|
pull_request:
|
|
branches: [ "main" ]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
matrix:
|
|
node-version: [18.x]
|
|
# node-version: [14.x, 16.x, 18.x]
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: Use Node.js ${{ matrix.node-version }}
|
|
uses: actions/setup-node@v3
|
|
with:
|
|
node-version: ${{ matrix.node-version }}
|
|
cache: 'yarn'
|
|
- name: Install dependencies
|
|
run: yarn
|
|
- name: Theme Test
|
|
run: yarn test
|
|
- name: Build & zip package
|
|
run: yarn zip
|
|
|
|
release:
|
|
runs-on: ubuntu-latest
|
|
needs: [build]
|
|
steps:
|
|
- uses: actions/checkout@master
|
|
- name: Create release
|
|
uses: softprops/action-gh-release@v1
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GST_TOKEN }}
|
|
- name: Upload release artifacts
|
|
uses: Roang-zero1/github-upload-release-artifacts-action@v2
|
|
if: startsWith(github.ref, 'refs/tags/')
|
|
with:
|
|
files: dist/casper-aytac.zip
|
|
draft: true
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GST_TOKEN }} |