From 95d286f99090057b008514bf30b09d3e15907749 Mon Sep 17 00:00:00 2001 From: celine Date: Thu, 8 Jan 2026 20:35:15 +0000 Subject: [PATCH] Yeet --- .../workflows/lightless-tag-and-release.yml | 43 +++++-------------- 1 file changed, 11 insertions(+), 32 deletions(-) diff --git a/.gitea/workflows/lightless-tag-and-release.yml b/.gitea/workflows/lightless-tag-and-release.yml index a91d953..35ddcc5 100644 --- a/.gitea/workflows/lightless-tag-and-release.yml +++ b/.gitea/workflows/lightless-tag-and-release.yml @@ -9,7 +9,8 @@ env: DOTNET_VERSION: | 10.x.x 9.x.x - + DOTNET_CLI_TELEMETRY_OPTOUT: true + jobs: tag-and-release: runs-on: ubuntu-22.04 @@ -32,16 +33,14 @@ jobs: - name: Download Dalamud run: | - cd / - mkdir -p root/.xlcore/dalamud/Hooks/dev + mkdir -p ~/.xlcore/dalamud/Hooks/dev curl -O https://goatcorp.github.io/dalamud-distrib/stg/latest.zip - unzip latest.zip -d /root/.xlcore/dalamud/Hooks/dev + unzip latest.zip -d ~/.xlcore/dalamud/Hooks/dev - name: Lets Build Lightless! run: | - dotnet restore - dotnet build --configuration Release --no-restore - dotnet publish --configuration Release --no-build + dotnet publish --configuration Release + mv LightlessSync/bin/x64/Release/LightlessSync/latest.zip LightlessClient.zip - name: Get version id: package_version @@ -53,19 +52,6 @@ jobs: run: | echo "Version: ${{ steps.package_version.outputs.version }}" - - name: Prepare Lightless Client - run: | - PUBLISH_PATH="/workspace/Lightless-Sync/LightlessClient/LightlessSync/bin/x64/Release/publish/" - if [ -d "$PUBLISH_PATH" ]; then - rm -rf "$PUBLISH_PATH" - echo "Removed $PUBLISH_PATH" - else - echo "$PUBLISH_PATH does not exist, nothing to remove." - fi - - mkdir -p output - (cd /workspace/Lightless-Sync/LightlessClient/LightlessSync/bin/x64/Release/ && zip -r $OLDPWD/output/LightlessClient.zip *) - - name: Create Git tag if not exists (master) if: github.ref == 'refs/heads/master' run: | @@ -162,14 +148,7 @@ jobs: echo "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 - - - name: Check asset exists - run: | - if [ ! -f output/LightlessClient.zip ]; then - echo "output/LightlessClient.zip does not exist!" - exit 1 - fi - + - name: Upload Assets to release env: RELEASE_ID: ${{ env.RELEASE_ID }} @@ -177,7 +156,7 @@ jobs: echo "Uploading to release ID: $RELEASE_ID" curl --fail-with-body -s -X POST \ -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" - name: Clone plugin hosting repo @@ -186,7 +165,7 @@ jobs: cd LightlessSyncRepo git clone https://git.lightless-sync.org/${{ gitea.repository_owner }}/LightlessSync.git env: - GIT_TERMINAL_PROMPT: 0 + GIT_TERMINAL_PROMPT: 0 - name: Update plogonmaster.json with version (master) if: github.ref == 'refs/heads/master' @@ -282,8 +261,8 @@ jobs: - name: Commit and push to LightlessSync run: | cd LightlessSyncRepo/LightlessSync - git config user.name "github-actions" - git config user.email "github-actions@github.com" + git config user.name "Gitea-Automation" + git config user.email "aaa@aaaaaaa.aaa" git add . git diff-index --quiet HEAD || git commit -m "Update ${{ env.PLUGIN_NAME }} to ${{ steps.package_version.outputs.version }}" git push https://x-access-token:${{ secrets.AUTOMATION_TOKEN }}@git.lightless-sync.org/${{ gitea.repository_owner }}/LightlessSync.git HEAD:main