diff options
author | Calum Lind <calumlind+deluge@gmail.com> | 2022-01-30 18:42:15 +0100 |
---|---|---|
committer | Calum Lind <calumlind+deluge@gmail.com> | 2022-01-30 18:42:15 +0100 |
commit | 73394f1fc5da75ccf0bd466385c2141ff93bd604 (patch) | |
tree | 2e577760055b7f1d1e0e8292fa791997bdc67ec0 /.github | |
parent | [CI] Allow manual specifying tag in packaging workflow (diff) | |
download | deluge-73394f1fc5da75ccf0bd466385c2141ff93bd604.tar.xz 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.
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/cd.yml | 7 |
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 |