[CI-Skip] [CheckSkip] Improve workflows

This commit is contained in:
AlphaKR93
2023-03-25 00:22:35 +09:00
parent 40f22c87a5
commit 7a95b47641
3 changed files with 6 additions and 12 deletions

View File

@@ -2,7 +2,7 @@ name: Build Plazma
on:
push:
branches: [ "ver/*", "feat/*", "dev/*", "expr/*", "ench/*" ]
branches: [ "ver/*", "feat/*", "dev/*", "expr/*", "ench/*", "impl/*" ]
workflow_dispatch:
env:
@@ -77,7 +77,7 @@ jobs:
./gradlew publish --stacktrace
- name: Upload Artifacts
if: env.DEBUG == 'true' || github.ref_name != env.MAIN_BRANCH
if: env.DEBUG == 'true' || !startsWith(github.ref_name, 'ver/')
uses: actions/upload-artifact@v3
with:
name: Artifacts
@@ -86,7 +86,7 @@ jobs:
Plazma-API/build/docs/javadoc
- name: Release Artifacts
if: github.ref_name == env.MAIN_BRANCH
if: startsWith(github.ref_name, 'ver/')
uses: marvinpinto/action-automatic-releases@latest
with:
title: "Release #${{ env.release_num }}"
@@ -96,7 +96,7 @@ jobs:
prerelease: false
- name: Release Artifacts (Latest)
if: github.ref_name == env.MAIN_BRANCH
if: startsWith(github.ref_name, 'ver/')
uses: marvinpinto/action-automatic-releases@latest
with:
title: "Release #${{ env.release_num }}"