Skip to content

Commit 10b6caf

Browse files
committed
Enable autorelease into 2nd repo
1 parent 53996cf commit 10b6caf

3 files changed

Lines changed: 35 additions & 45 deletions

File tree

.github/workflows/main.yml

Lines changed: 29 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -20,46 +20,33 @@ jobs:
2020
path: |
2121
DeDRM_tools_*.zip
2222
DeDRM_tools.zip
23+
24+
- name: Prepare release
25+
run: cp DeDRM_tools.zip DeDRM_alpha_${{ github.sha }}.zip
2326

24-
# - name: Delete old release
25-
# uses: cb80/delrel@latest
26-
# with:
27-
# tag: autorelease
28-
# token: ${{ github.token }}
29-
#
30-
# - name: Delete old tag
31-
# uses: dev-drprasad/delete-tag-and-release@v1.0
32-
# with:
33-
# tag_name: autorelease
34-
# github_token: ${{ github.token }}
35-
# delete_release: true
36-
#
37-
# - name: Prepare release
38-
# run: cp DeDRM_tools.zip DeDRM_alpha_${{ github.sha }}.zip
39-
#
40-
# - name: Auto-release
41-
# id: autorelease
42-
# uses: softprops/action-gh-release@v1
43-
# with:
44-
# tag_name: autorelease
45-
# token: ${{ github.token }}
46-
# name: Automatic alpha release with latest changes
47-
# body: |
48-
# This release is automatically generated by Github for each commit.
49-
#
50-
# This means, every time a change is made to this repo, this release will be updated to contain an untested copy of the plugin at that stage. This will contain the most up-to-date code, but it's not tested at all and may be broken.
51-
#
52-
# Last update based on Git commit ${{ github.sha }}.
53-
# prerelease: true
54-
# draft: true
55-
# files: DeDRM_alpha_${{ github.sha }}.zip
56-
#
57-
# - name: Make release public
58-
# uses: irongut/EditRelease@v1.2.0
59-
# with:
60-
# token: ${{ github.token }}
61-
# id: ${{ steps.autorelease.outputs.id }}
62-
# draft: false
63-
# prerelease: true
64-
#
65-
#
27+
28+
- uses: dev-drprasad/delete-older-releases@v0.2.1
29+
with:
30+
repo: noDRM/DeDRM_tools_autorelease
31+
keep_latest: 0
32+
delete_tags: true
33+
env:
34+
GITHUB_TOKEN: ${{ secrets.AUTORELEASE_KEY }}
35+
36+
- name: Auto-release
37+
id: autorelease
38+
uses: softprops/action-gh-release@v1
39+
with:
40+
tag_name: autorelease_${{ github.sha }}
41+
repository: noDRM/DeDRM_tools_autorelease
42+
token: ${{ secrets.AUTORELEASE_KEY }}
43+
name: Automatic alpha release with latest changes
44+
body: |
45+
This release is automatically generated by Github for each commit.
46+
47+
This means, every time a change is made to the repo, a release with an untested copy of the plugin at that stage will be created. This will contain the most up-to-date code, but it's not tested at all and may be broken.
48+
49+
Last update based on Git commit [${{ github.sha }}](https://github.com/noDRM/DeDRM_tools/commit/${{ github.sha }}).
50+
prerelease: true
51+
draft: false
52+
files: DeDRM_alpha_${{ github.sha }}.zip

DeDRM_plugin/adobekey.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
import sys, os, struct, getopt
4545
from base64 import b64decode
4646

47+
#@@CALIBRE_COMPAT_CODE@@
4748

4849

4950
from .utilities import SafeUnbuffered

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,13 @@ DeDRM tools for ebooks
33

44
This is a fork of Apprentice Harper's version of the DeDRM tools. Apprentice Harper said that the original version of the plugin [is no longer maintained](https://github.com/apprenticeharper/DeDRM_tools#no-longer-maintained), so I've taken over, merged a bunch of open PRs, and added a ton more features and bugfixes.
55

6-
The latest stable (released) version is v10.0.3 which [can be downloaded here](https://github.com/noDRM/DeDRM_tools/releases/tag/v10.0.3).
6+
The latest stable (released) version is v10.0.3 which [can be downloaded here](https://github.com/noDRM/DeDRM_tools/releases/tag/v10.0.3). The latest beta is v10.0.9, as a release candidate for v10.1.0. It [can be downloaded here](https://github.com/noDRM/DeDRM_tools/releases/tag/v10.0.9).
77

8-
Take a look at [the CHANGELOG](https://github.com/noDRM/DeDRM_tools/blob/master/CHANGELOG.md) to see a list of changes since the last version by Apprentice Harper (v7.2.1). This plugin will start with version v10.0.0.
8+
The latest alpha version is available [at this link](https://github.com/noDRM/DeDRM_tools_autorelease/releases). This version is completely untested and will contain the latest code changes in this repository. With each commit in this repository, a new automatic alpha version will be uploaded there. If you want the most up-to-date code to test things and are okay with the plugin occasionally breaking, you can download this version.
99

10-
The v10.0.0 versions of this plugin should both work with Calibre 5.x (Python 3) as well as Calibre 4.x and lower (Python 2). If you encounter issues with this plugin in Calibre 4.x or lower, please open a bug report.
10+
Take a look at [the CHANGELOG](https://github.com/noDRM/DeDRM_tools/blob/master/CHANGELOG.md) to see a list of changes since the last version by Apprentice Harper (v7.2.1).
11+
12+
My version of the plugin should both work with Calibre 5.x/6.x (Python 3) as well as Calibre 4.x and lower (Python 2). If you encounter issues with this plugin in Calibre 4.x or lower, please open a bug report.
1113

1214
# Original README from Apprentice Harper
1315

0 commit comments

Comments
 (0)