Skip to content

Commit e7ca32d

Browse files
committed
Remove deprecated action dependencies and improve workflow
1 parent 4b7b27a commit e7ca32d

1 file changed

Lines changed: 14 additions & 39 deletions

File tree

.github/workflows/create_latest.yml

Lines changed: 14 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@
55
name: BlendLuxCore Create Latest Release
66

77
on:
8-
pull_request:
9-
branches:
10-
- for_v2.10
118
push:
129
branches:
1310
- for_v2.10
@@ -57,7 +54,14 @@ jobs:
5754
name: "BlendLuxCore"
5855
path: "${{ github.workspace }}/unzip/*"
5956

60-
- name: Check if latest release already exists
57+
- name: Update the "latest" tag
58+
uses: richardsimko/update-tag@v1
59+
with:
60+
tag_name: latest
61+
env:
62+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
63+
64+
- name: Delete old latest release
6165
shell: bash
6266
run: |
6367
echo false > ${{ github.workspace }}/tmp_release_test
@@ -69,46 +73,17 @@ jobs:
6973
fi
7074
done
7175
TESTRESULT=$(cat ${{ github.workspace }}/tmp_release_test)
72-
echo $TESTRESULT
73-
echo "ReleaseExists=$TESTRESULT" >> "$GITHUB_OUTPUT"
74-
env:
75-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
76-
id: check_release_exists
77-
78-
- name: Update the "latest" tag
79-
uses: richardsimko/update-tag@v1
80-
with:
81-
tag_name: latest
82-
env:
83-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
84-
85-
- name: Delete old latest release
86-
shell: bash
87-
run: |
88-
gh release delete latest
89-
if: |
90-
${{ steps.check-release-exists.outputs.ReleaseExists }} == 'true'
76+
if [[ $TESTRESULT = 'true' ]]; then
77+
gh release delete latest
78+
fi
9179
env:
9280
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
9381

94-
- name: Create new latest release
95-
uses: actions/create-release@v1
96-
env:
97-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
98-
with:
99-
tag_name: latest
100-
release_name: 'BlendLuxCore Latest'
101-
draft: false
102-
prerelease: true
103-
104-
- name: Release
105-
uses: softprops/action-gh-release@v2
106-
if: github.event_name == 'release'
107-
with:
108-
files: ${{ github.workspace }}/build/BlendLuxCore-Latest.zip
109-
11082
- name: Add binaries
11183
uses: softprops/action-gh-release@v2
11284
with:
11385
tag_name: latest
11486
files: ${{ github.workspace }}/build/BlendLuxCore-Latest.zip
87+
draft: false
88+
prerelease: true
89+
body: "This is the result of automatic compilation of the latest commits.\n\nPlease note that this release may be unstable and is not recommended for production use."

0 commit comments

Comments
 (0)