summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCalum Lind <calumlind+deluge@gmail.com>2022-01-30 17:42:15 +0000
committerCalum Lind <calumlind+deluge@gmail.com>2022-01-30 17:42:15 +0000
commit73394f1fc5da75ccf0bd466385c2141ff93bd604 (patch)
tree2e577760055b7f1d1e0e8292fa791997bdc67ec0
parent9b043cf2c1429ff9685d18bc83e1b2f03895d54d (diff)
downloaddeluge-73394f1fc5da75ccf0bd466385c2141ff93bd604.tar.gz
deluge-73394f1fc5da75ccf0bd466385c2141ff93bd604.tar.bz2
deluge-73394f1fc5da75ccf0bd466385c2141ff93bd604.zip
[CI] Fix run manual packaging workflow for tag
To allow packaging any commit the workflow needs to separately checkout the source code from the current code containing the packaging scripts.
-rw-r--r--.github/workflows/cd.yml7
1 files changed, 7 insertions, 0 deletions
diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml
index b1a0d0609..1104742eb 100644
--- a/.github/workflows/cd.yml
+++ b/.github/workflows/cd.yml
@@ -32,7 +32,13 @@ jobs:
- uses: actions/checkout@v2
with:
fetch-depth: 0
+
+ # Checkout Deluge source to subdir to enable packaging any tag/commit
+ - name: Checkout Deluge source
+ uses: actions/checkout@v2
+ with:
ref: ${{ github.event.inputs.ref }}
+ path: deluge_src
- name: Set up Python
uses: actions/setup-python@v2
@@ -74,6 +80,7 @@ jobs:
-r requirements.txt
- name: Install Deluge
+ working-directory: deluge_src
run: |
python -m pip install .
python setup.py install_scripts