11 Commits

Author SHA1 Message Date
04065a0dd1 chore: remove accidental swap file 2026-01-13 16:11:23 +01:00
47628638e2 chore: release v1.0.35
All checks were successful
Release Build / build-and-release (push) Successful in 6s
2026-01-13 16:00:12 +01:00
39dfbfc618 chore: release v1.0.34
Some checks failed
Release Build / build-and-release (push) Failing after 6s
2026-01-13 15:51:16 +01:00
63bb8f463d chore: release v1.0.33
Some checks failed
Release Build / build-and-release (push) Failing after 6s
2026-01-13 15:44:16 +01:00
e393fc5b6b chore: release v1.0.32
Some checks failed
Release Build / build-and-release (push) Failing after 6s
2026-01-13 15:37:55 +01:00
57eb55cb23 chore: release v1.0.31
Some checks failed
Release Build / build-and-release (push) Failing after 6s
2026-01-13 15:27:37 +01:00
1cdfffa4f8 chore: release v1.0.30
Some checks failed
Release Build / build-and-release (push) Failing after 6s
2026-01-13 15:25:37 +01:00
edfc168cab chore: release v1.0.29
Some checks failed
Release Build / build-and-release (push) Failing after 7s
2026-01-13 15:24:11 +01:00
1a82bdfd46 chore: release v1.0.28
Some checks failed
Release Build / build-and-release (push) Failing after 6s
2026-01-13 15:21:27 +01:00
cd881150dd Added READM 2026-01-12 21:57:15 +01:00
82bee90c3d Added Gitea actions 2026-01-12 17:35:35 +01:00
4 changed files with 48 additions and 8 deletions

View File

@@ -56,10 +56,49 @@ jobs:
echo "ARTIFACT_NAME=$output_name" >> $GITHUB_ENV
- name: Create Release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
files: ${{ env.ARTIFACT_NAME }}
draft: false
prerelease: false
generate_release_notes: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
# Define Variables
TAG_NAME=${GITHUB_REF#refs/tags/}
API_URL="${GITHUB_API_URL}/repos/${GITHUB_REPOSITORY}/releases"
FILE_NAME="${{ env.ARTIFACT_NAME }}"
echo "Creating release for $TAG_NAME on Gitea..."
# 1. Create Release
RESPONSE=$(curl -s -X POST "$API_URL" \
-H "Authorization: token $GITHUB_TOKEN" \
-H "Content-Type: application/json" \
-d "{
\"tag_name\": \"$TAG_NAME\",
\"name\": \"$TAG_NAME\",
\"body\": \"Automated release for $TAG_NAME\",
\"draft\": false,
\"prerelease\": false
}")
# Extract Release ID (simple grep fallback)
RELEASE_ID=$(echo "$RESPONSE" | grep -o '"id": *[0-9]*' | head -1 | grep -o '[0-9]*')
if [ -z "$RELEASE_ID" ]; then
echo "Error: Failed to create release. API Response:"
echo "$RESPONSE"
exit 1
fi
echo "Release created with ID: $RELEASE_ID"
# 2. Upload Asset
# Gitea API: POST /repos/{owner}/{repo}/releases/{id}/assets
UPLOAD_URL="${API_URL}/${RELEASE_ID}/assets"
echo "Uploading artifact: $FILE_NAME to $UPLOAD_URL"
curl -f -X POST "$UPLOAD_URL?name=$FILE_NAME" \
-H "Authorization: token $GITHUB_TOKEN" \
-H "Content-Type: application/octet-stream" \
--data-binary "@$FILE_NAME"
echo "Asset uploaded successfully."

View File

@@ -3,7 +3,7 @@
<assemblyIdentity
type="win32"
name="PrintCleaner.App"
version="1.0.27.0"
version="1.0.35.0"
processorArchitecture="amd64"
/>
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">

1
README.md Normal file
View File

@@ -0,0 +1 @@
# PrintCleaner

View File

@@ -1 +1 @@
1.0.27
1.0.35