From e2bc73bef1b5f032a0a85ee16c3eb7b8e7bccfbf Mon Sep 17 00:00:00 2001 From: ryanking13 Date: Thu, 6 Jun 2024 23:26:02 +0900 Subject: [PATCH 1/6] Run release on pr for test --- .github/workflows/build.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 635e65f..fee504c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -270,8 +270,8 @@ jobs: packages release: runs-on: ubuntu-latest - needs: [build] - if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') + # needs: [build] + # if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') environment: deploy steps: - uses: actions/checkout@v3 @@ -294,7 +294,7 @@ jobs: - name: Install anaconda-client run: | - pip install anaconda-client + mamba install -c conda-forge anaconda-client -y - name: Upload wheels run: | From e67e99136ba4438dfe3e09441861685d2de765e5 Mon Sep 17 00:00:00 2001 From: ryanking13 Date: Thu, 6 Jun 2024 23:27:55 +0900 Subject: [PATCH 2/6] Disable downloading artifacts temporarily --- .github/workflows/build.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index fee504c..b09fb39 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -286,11 +286,11 @@ jobs: activate-environment: pyodide-env use-mamba: true - - name: Download build artifact - uses: actions/download-artifact@v2 - with: - name: repodata - path: ./repodata/ + # - name: Download build artifact + # uses: actions/download-artifact@v2 + # with: + # name: repodata + # path: ./repodata/ - name: Install anaconda-client run: | From 19a6d13a70fc011fd267802054caea8dd80f2b7b Mon Sep 17 00:00:00 2001 From: ryanking13 Date: Thu, 6 Jun 2024 23:30:20 +0900 Subject: [PATCH 3/6] Use shell --- .github/workflows/build.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b09fb39..930c69a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -293,6 +293,7 @@ jobs: # path: ./repodata/ - name: Install anaconda-client + shell: bash -el {0} run: | mamba install -c conda-forge anaconda-client -y From 354a4631e6c707cccb7426b6d703ef8a720e688b Mon Sep 17 00:00:00 2001 From: ryanking13 Date: Thu, 6 Jun 2024 23:31:40 +0900 Subject: [PATCH 4/6] Default shell --- .github/workflows/build.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 930c69a..74a88a8 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -270,6 +270,9 @@ jobs: packages release: runs-on: ubuntu-latest + defaults: + run: + shell: bash -el {0} # needs: [build] # if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') environment: deploy @@ -293,7 +296,6 @@ jobs: # path: ./repodata/ - name: Install anaconda-client - shell: bash -el {0} run: | mamba install -c conda-forge anaconda-client -y From cde3934ac154d0136d7ffb21d19dff217650448e Mon Sep 17 00:00:00 2001 From: ryanking13 Date: Thu, 6 Jun 2024 23:34:31 +0900 Subject: [PATCH 5/6] Default channel --- .github/workflows/build.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 74a88a8..4bf73c6 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -287,6 +287,7 @@ jobs: miniforge-variant: Mambaforge miniforge-version: latest activate-environment: pyodide-env + channels: conda-forge use-mamba: true # - name: Download build artifact @@ -297,7 +298,7 @@ jobs: - name: Install anaconda-client run: | - mamba install -c conda-forge anaconda-client -y + mamba install -c defaults anaconda-client -y - name: Upload wheels run: | From e866b853a4a93543612dd391ddb6ff28e3d63ee0 Mon Sep 17 00:00:00 2001 From: ryanking13 Date: Thu, 6 Jun 2024 23:35:47 +0900 Subject: [PATCH 6/6] Revert changes --- .github/workflows/build.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4bf73c6..4cab746 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -273,8 +273,8 @@ jobs: defaults: run: shell: bash -el {0} - # needs: [build] - # if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') + needs: [build] + if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') environment: deploy steps: - uses: actions/checkout@v3 @@ -290,11 +290,11 @@ jobs: channels: conda-forge use-mamba: true - # - name: Download build artifact - # uses: actions/download-artifact@v2 - # with: - # name: repodata - # path: ./repodata/ + - name: Download build artifact + uses: actions/download-artifact@v2 + with: + name: repodata + path: ./repodata/ - name: Install anaconda-client run: |