From c9ff48c13127eccaf8aeeae6bb2c729a12ca4274 Mon Sep 17 00:00:00 2001 From: Aytac Kirmizi Date: Fri, 31 Mar 2023 10:54:20 +0200 Subject: [PATCH] **update** github actions --- .github/workflows/yarn-gulp.yml | 23 +++++++++++++++++------ 1 file changed, 17 insertions(+), 6 deletions(-) diff --git a/.github/workflows/yarn-gulp.yml b/.github/workflows/yarn-gulp.yml index f9ff47d..2d0ec57 100644 --- a/.github/workflows/yarn-gulp.yml +++ b/.github/workflows/yarn-gulp.yml @@ -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 \ No newline at end of file + 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 }} \ No newline at end of file