mirror of
https://github.com/spaytac/Casper.git
synced 2026-01-21 16:54:52 +00:00
**update** github actions
This commit is contained in:
parent
34493249e2
commit
c9ff48c131
23
.github/workflows/yarn-gulp.yml
vendored
23
.github/workflows/yarn-gulp.yml
vendored
@ -17,21 +17,32 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Use Node.js ${{ matrix.node-version }}
|
- name: Use Node.js ${{ matrix.node-version }}
|
||||||
uses: actions/setup-node@v3
|
uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: ${{ matrix.node-version }}
|
node-version: ${{ matrix.node-version }}
|
||||||
cache: 'yarn'
|
cache: 'yarn'
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: yarn
|
run: yarn
|
||||||
|
|
||||||
- name: Theme Test
|
- name: Theme Test
|
||||||
run: yarn test
|
run: yarn test
|
||||||
|
|
||||||
- name: Build & zip package
|
- name: Build & zip package
|
||||||
run: yarn zip
|
run: yarn zip
|
||||||
|
|
||||||
- name: Release package
|
release:
|
||||||
run: gulp 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 }}
|
||||||
Loading…
Reference in New Issue
Block a user