Repository navigation
122 lines (101 loc) · 4.05 KB
/
Copy pathrelease.yml
File metadata and controls
122 lines (101 loc) · 4.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
name: Build and Release Plugin
on:
push:
tags:
- '*.*.*' # Triggers on version tags like 1.0.0
permissions:
contents: write
jobs:
build-and-release:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '16'
- name: Install dependencies
run: npm install
- name: Build frontend
run: npm run build
- name: Create plugin directory structure
run: |
mkdir -p plugin-build/deck-progress-tracker/py_modules
cp -r dist plugin-build/deck-progress-tracker/
cp py_modules/database.py plugin-build/deck-progress-tracker/py_modules/
cp py_modules/steam_data.py plugin-build/deck-progress-tracker/py_modules/
cp py_modules/hltb_service.py plugin-build/deck-progress-tracker/py_modules/
cp main.py plugin-build/deck-progress-tracker/
cp plugin.json plugin-build/deck-progress-tracker/
cp package.json plugin-build/deck-progress-tracker/
cp requirements.txt plugin-build/deck-progress-tracker/
cp LICENSE plugin-build/deck-progress-tracker/
cp README.md plugin-build/deck-progress-tracker/
- name: Create version file
run: |
echo "${{ github.ref_name }}" > plugin-build/deck-progress-tracker/VERSION
- name: Create release zip
run: |
cd plugin-build
zip -r ../deck-progress-tracker-${{ github.ref_name }}.zip deck-progress-tracker
cd ..
- name: Verify zip contents
run: |
unzip -l deck-progress-tracker-${{ github.ref_name }}.zip
- name: Generate release notes
id: release_notes
run: |
cat > release_notes.md << 'EOF'
## Deck Progress Tracker ${{ github.ref_name }}
### Installation
**Option 1: Install from URL (Recommended)**
1. Enable Developer Mode in Decky Loader settings
2. Go to Developer tab → Install Plugin from URL
3. Enter this URL:
```
https://github.com/${{ github.repository }}/releases/download/${{ github.ref_name }}/deck-progress-tracker-${{ github.ref_name }}.zip
```
4. Click Install and wait for completion
**Option 2: Download and Install Manually**
1. Download `deck-progress-tracker-${{ github.ref_name }}.zip` below
2. Extract to `~/homebrew/plugins/` on your Steam Deck
3. Install Python dependencies: `pip install --user -r requirements.txt`
4. Restart Decky Loader
### Features
- 🎮 Automatic game tagging (Completed, In Progress, Mastered)
- ⏱️ HowLongToBeat integration for completion times
- 🎯 Achievement tracking
- 📊 Library statistics
- ✏️ Manual tag override
- ⚙️ Configurable thresholds
### First Time Setup
1. Open plugin settings from Decky menu
2. Click "Sync Entire Library"
3. Wait for sync to complete (may take several minutes)
4. Navigate to game pages to see tags
### Requirements
- Steam Deck with Decky Loader installed
- Internet connection (for HLTB data)
### Support
Report issues at: https://github.com/${{ github.repository }}/issues
EOF
- name: Create GitHub Release
uses: softprops/action-gh-release@v1
with:
files: deck-progress-tracker-${{ github.ref_name }}.zip
body_path: release_notes.md
draft: false
prerelease: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Update latest.zip (for static URL)
uses: softprops/action-gh-release@v1
with:
files: deck-progress-tracker-${{ github.ref_name }}.zip
tag_name: latest
name: Latest Release
draft: false
prerelease: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}