[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.
This commit is contained in:
Calum Lind 2022-01-30 17:42:15 +00:00
parent 9b043cf2c1
commit 73394f1fc5
No known key found for this signature in database
GPG Key ID: 90597A687B836BA3

View File

@ -32,7 +32,13 @@ jobs:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
with: with:
fetch-depth: 0 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 }} ref: ${{ github.event.inputs.ref }}
path: deluge_src
- name: Set up Python - name: Set up Python
uses: actions/setup-python@v2 uses: actions/setup-python@v2
@ -74,6 +80,7 @@ jobs:
-r requirements.txt -r requirements.txt
- name: Install Deluge - name: Install Deluge
working-directory: deluge_src
run: | run: |
python -m pip install . python -m pip install .
python setup.py install_scripts python setup.py install_scripts