mirror of https://github.com/halo-dev/halo
Fix potential github action smells (#5809)
parent
d86ddf4a04
commit
546d63740b
|
@ -19,6 +19,10 @@ on:
|
||||||
types:
|
types:
|
||||||
- published
|
- published
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: ${{github.workflow}} - ${{github.ref}}
|
||||||
|
cancel-in-progress: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
if: github.event_name == 'pull_request' || github.event_name == 'push'
|
if: github.event_name == 'pull_request' || github.event_name == 'push'
|
||||||
|
@ -30,6 +34,7 @@ jobs:
|
||||||
- name: Check Halo
|
- name: Check Halo
|
||||||
run: ./gradlew check
|
run: ./gradlew check
|
||||||
- name: Upload coverage reports to Codecov
|
- name: Upload coverage reports to Codecov
|
||||||
|
if: github.repository == 'halo-dev/halo'
|
||||||
uses: codecov/codecov-action@v4
|
uses: codecov/codecov-action@v4
|
||||||
|
|
||||||
build:
|
build:
|
||||||
|
@ -51,6 +56,7 @@ jobs:
|
||||||
- name: Build Halo
|
- name: Build Halo
|
||||||
run: ./gradlew clean && ./gradlew downloadPluginPresets && ./gradlew build -x check
|
run: ./gradlew clean && ./gradlew downloadPluginPresets && ./gradlew build -x check
|
||||||
- name: Upload Artifacts
|
- name: Upload Artifacts
|
||||||
|
if: github.repository == 'halo-dev/halo'
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: halo-artifacts
|
name: halo-artifacts
|
||||||
|
@ -69,6 +75,7 @@ jobs:
|
||||||
name: halo-artifacts
|
name: halo-artifacts
|
||||||
path: application/build/libs
|
path: application/build/libs
|
||||||
- name: Upload Artifacts
|
- name: Upload Artifacts
|
||||||
|
if: github.repository == 'halo-dev/halo'
|
||||||
env:
|
env:
|
||||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
run: gh release upload ${{ github.event.release.tag_name }} application/build/libs/*
|
run: gh release upload ${{ github.event.release.tag_name }} application/build/libs/*
|
||||||
|
|
Loading…
Reference in New Issue