Skip to content

Commit

Permalink
Set build flag before build
Browse files Browse the repository at this point in the history
  • Loading branch information
bnmajor committed Feb 4, 2025
1 parent 6d24296 commit 0bd6354
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,10 @@ jobs:
- name: Create conda environment to build HEXRDGUI
working-directory: hexrdgui
# force tar.bz2 files with '--set conda_build.pkg_format 1'
run: |
conda env create -f packaging/environment.yml
conda config --set conda_build.pkg_format 1
# This is need to ensure ~/.profile or ~/.bashrc are used so the activate
# command works.
shell: bash -l {0}
Expand Down Expand Up @@ -132,11 +134,9 @@ jobs:
- name: Upload the package to anaconda channel (only on master)
if: github.ref == 'refs/heads/master' || contains(github.ref, 'refs/tags/')
working-directory: hexrdgui/packaging
# force tar.bz2 files with '--set conda_build.pkg_format 1'
run: |
conda activate hexrdgui-package
conda install --override-channels -c conda-forge anaconda-client
conda config --set conda_build.pkg_format 1
anaconda --token ${{ secrets.ANACONDA_TOKEN }} upload --force --user HEXRD --label ${HEXRDGUI_PACKAGE_LABEL} output/**/*.tar.bz2
# This is need to ensure ~/.profile or ~/.bashrc are used so the activate
# command works.
Expand Down

0 comments on commit 0bd6354

Please sign in to comment.