Skip to content

Commit

Permalink
⚗️ Try to fix conda CI on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
michprev committed Jun 21, 2024
1 parent 93c5bee commit 97c06a1
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/conda-pack.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- name: Set up variables
id: vars
run: |
echo "FILENAME=wake-${{ runner.os }}-${{ runner.arch }}.tar.gz" >> $GITHUB_ENV
echo "FILENAME=wake-${{ runner.os }}-${{ runner.arch }}.tar.gz" >> $GITHUB_OUTPUT
- uses: actions/checkout@v2
- uses: conda-incubator/setup-miniconda@v3
with:
Expand All @@ -28,24 +28,24 @@ jobs:
- name: Pack conda environment
shell: bash -el {0}
run: |
conda-pack -n wake -o ${{ env.FILENAME }}
conda-pack -n wake -o ${{ steps.vars.outputs.FILENAME }}
- name: Generate checksum Linux & Windows
if: runner.os != 'macOS'
run: |
sha256sum ${{ env.FILENAME }} > ${{ env.FILENAME }}.sha256
sha256sum ${{ steps.vars.outputs.FILENAME }} > ${{ steps.vars.outputs.FILENAME }}.sha256
- name: Generate checksum MacOS
if: runner.os == 'macOS'
run: |
shasum -a 256 ${{ env.FILENAME }} > ${{ env.FILENAME }}.sha256
shasum -a 256 ${{ steps.vars.outputs.FILENAME }} > ${{ steps.vars.outputs.FILENAME }}.sha256
- name: Generate signature
run: |
echo "${{ secrets.CONDA_PRIVATE_KEY }}" > key.pem
openssl dgst -sha256 -sign key.pem -out ${{ env.FILENAME }}.sha256.sig ${{ env.FILENAME }}.sha256
openssl dgst -sha256 -sign key.pem -out ${{ steps.vars.outputs.FILENAME }}.sha256.sig ${{ steps.vars.outputs.FILENAME }}.sha256
- name: Upload files
uses: actions/upload-artifact@v2
with:
name: wake-${{ runner.os }}-${{ runner.arch }}
path: |
${{ env.FILENAME }}
${{ env.FILENAME }}.sha256
${{ env.FILENAME }}.sha256.sig
${{ steps.vars.outputs.FILENAME }}
${{ steps.vars.outputs.FILENAME }}.sha256
${{ steps.vars.outputs.FILENAME }}.sha256.sig

0 comments on commit 97c06a1

Please sign in to comment.