Skip to content

Commit

Permalink
chore: fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex4386 committed Feb 22, 2021
1 parent 2232d77 commit 75fe729
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
XXXS_VERSION=$(python3 ./main.py --version)
cd /tmp; git clone https://github.com/fade-project/fade
cd fade; yarn install
yarn start --init --name xenxenxense --path $GITHUB_WORKSPACE --version $XXXS_VERSION-$PYTHON_VERSION \
yarn start --init --name xenxenxense --path $GITHUB_WORKSPACE --version $XXXS_VERSION-py$PYTHON_VERSION \
--description "A Modern RESTful API implemenation of XenAPI for Citrix Hypervisor(R) and XCP-ng." \
--url "https://github.com/Stella-IT/XenXenXenSe" --priority optional --architecture all \
--cmdline "python3 main.py" --dependency python$PYTHON_VERSION --dependency python3-pip \
Expand All @@ -38,13 +38,15 @@ jobs:
sudo -H -u xenxenxense python3 -m pip install -r requirements.txt
echo "WARNING: config.py is currently default; please edit before use."
EOF
node dist/ --create-deb --path $GITHUB_WORKSPACE --output $GITHUB_WORKSPACE/xenxenxense_$XXXS_VERSION-$PYTHON_VERSION\_all.deb
node dist/ --create-deb --path $GITHUB_WORKSPACE --output $GITHUB_WORKSPACE/xenxenxense_$XXXS_VERSION-py$PYTHON_VERSION\_all.deb
env:
PYTHON_VERSION: ${{ matrix.python-version }}
- name: Upload to release
uses: JasonEtco/upload-to-release@master
- name: Upload packages to release
uses: svenstaro/upload-release-action@v2
with:
args: xenxenxense_*_all.deb
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: xenxenxense_*_all.deb
tag: ${{ github.ref }}
overwrite: true
file_glob: true

0 comments on commit 75fe729

Please sign in to comment.