mirror of
https://github.com/leejet/stable-diffusion.cpp.git
synced 2025-12-13 05:48:56 +00:00
fix workflow
This commit is contained in:
parent
79426d578e
commit
7d652f317b
12
.github/workflows/build.yml
vendored
12
.github/workflows/build.yml
vendored
@ -288,6 +288,11 @@ jobs:
|
|||||||
- windows-latest-cmake
|
- windows-latest-cmake
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- name: Clone
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Download artifacts
|
- name: Download artifacts
|
||||||
id: download-artifact
|
id: download-artifact
|
||||||
uses: actions/download-artifact@v4
|
uses: actions/download-artifact@v4
|
||||||
@ -298,14 +303,18 @@ jobs:
|
|||||||
|
|
||||||
- name: Get commit count
|
- name: Get commit count
|
||||||
id: commit_count
|
id: commit_count
|
||||||
run: echo "count=$(git rev-list --count HEAD)" >> $GITHUB_OUTPUT
|
run: |
|
||||||
|
echo "count=$(git rev-list --count HEAD)" >> $GITHUB_OUTPUT
|
||||||
|
echo "DEBUG: commit count = $(git rev-list --count HEAD)"
|
||||||
|
|
||||||
- name: Get commit hash
|
- name: Get commit hash
|
||||||
id: commit
|
id: commit
|
||||||
uses: pr-mpt/actions-commit-hash@v2
|
uses: pr-mpt/actions-commit-hash@v2
|
||||||
|
run: echo "DEBUG commit short hash = ${{ steps.commit.outputs.short }}"
|
||||||
|
|
||||||
- name: Create release
|
- name: Create release
|
||||||
id: create_release
|
id: create_release
|
||||||
|
if: ${{ github.event_name == 'workflow_dispatch' || github.ref_name == 'master' }}
|
||||||
uses: anzz1/action-create-release@v1
|
uses: anzz1/action-create-release@v1
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
@ -317,6 +326,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Upload release
|
- name: Upload release
|
||||||
id: upload_release
|
id: upload_release
|
||||||
|
if: ${{ github.event_name == 'workflow_dispatch' || github.ref_name == 'master' }}
|
||||||
uses: actions/github-script@v3
|
uses: actions/github-script@v3
|
||||||
with:
|
with:
|
||||||
github-token: ${{secrets.GITHUB_TOKEN}}
|
github-token: ${{secrets.GITHUB_TOKEN}}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user