Final test (hopefully)
All checks were successful
Tag and Release Lightless / tag-and-release (push) Successful in 2m11s
All checks were successful
Tag and Release Lightless / tag-and-release (push) Successful in 2m11s
This commit is contained in:
@@ -44,6 +44,7 @@ jobs:
|
|||||||
- name: Lets Build Lightless!
|
- name: Lets Build Lightless!
|
||||||
run: |
|
run: |
|
||||||
dotnet publish --configuration Release
|
dotnet publish --configuration Release
|
||||||
|
mv LightlessSync/bin/x64/Release/LightlessSync/latest.zip LightlessClient.zip
|
||||||
|
|
||||||
- name: Get version
|
- name: Get version
|
||||||
id: package_version
|
id: package_version
|
||||||
@@ -55,15 +56,6 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
echo "Version: ${{ steps.package_version.outputs.version }}"
|
echo "Version: ${{ steps.package_version.outputs.version }}"
|
||||||
|
|
||||||
- name: Dump release folder content
|
|
||||||
run: |
|
|
||||||
ls -alR /workspace/Lightless-Sync/LightlessClient/LightlessSync/bin/x64/Release/
|
|
||||||
|
|
||||||
- name: Prepare Lightless Client
|
|
||||||
run: |
|
|
||||||
mkdir /output
|
|
||||||
(cd /workspace/Lightless-Sync/LightlessClient/LightlessSync/bin/x64/Release/ && zip -r /output/LightlessClient.zip *)
|
|
||||||
|
|
||||||
- name: Create Git tag if not exists (master)
|
- name: Create Git tag if not exists (master)
|
||||||
if: github.ref == 'refs/heads/master'
|
if: github.ref == 'refs/heads/master'
|
||||||
run: |
|
run: |
|
||||||
@@ -161,16 +153,9 @@ jobs:
|
|||||||
echo "release_id=$release_id" >> $GITHUB_OUTPUT || echo "::set-output name=release_id::$release_id"
|
echo "release_id=$release_id" >> $GITHUB_OUTPUT || echo "::set-output name=release_id::$release_id"
|
||||||
echo "RELEASE_ID=$release_id" >> $GITHUB_ENV
|
echo "RELEASE_ID=$release_id" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Check asset exists
|
|
||||||
run: |
|
|
||||||
if [ ! -f /output/LightlessClient.zip ]; then
|
|
||||||
echo "/output/LightlessClient.zip does not exist!"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
- name: Dump zip content
|
- name: Dump zip content
|
||||||
run: |
|
run: |
|
||||||
unzip -l /output/LightlessClient.zip
|
unzip -l LightlessClient.zip
|
||||||
|
|
||||||
|
|
||||||
# - name: Upload Assets to release
|
# - name: Upload Assets to release
|
||||||
@@ -180,7 +165,7 @@ jobs:
|
|||||||
# echo "Uploading to release ID: $RELEASE_ID"
|
# echo "Uploading to release ID: $RELEASE_ID"
|
||||||
# curl --fail-with-body -s -X POST \
|
# curl --fail-with-body -s -X POST \
|
||||||
# -H "Authorization: token ${{ secrets.GITEA_TOKEN }}" \
|
# -H "Authorization: token ${{ secrets.GITEA_TOKEN }}" \
|
||||||
# -F "attachment=@/output/LightlessClient.zip" \
|
# -F "attachment=@LightlessClient.zip" \
|
||||||
# "https://git.lightless-sync.org/api/v1/repos/${GITHUB_REPOSITORY}/releases/$RELEASE_ID/assets"
|
# "https://git.lightless-sync.org/api/v1/repos/${GITHUB_REPOSITORY}/releases/$RELEASE_ID/assets"
|
||||||
|
|
||||||
- name: Clone plugin hosting repo
|
- name: Clone plugin hosting repo
|
||||||
|
|||||||
Reference in New Issue
Block a user