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:
|
||||
- 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
|
||||
|
||||
- name: Release package
|
||||
run: gulp release
|
||||
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