Skip to content

Commit

Permalink
Fix CI, take I
Browse files Browse the repository at this point in the history
  • Loading branch information
kordejong committed Feb 22, 2024
1 parent dd54192 commit 887fe29
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 31 deletions.
19 changes: 9 additions & 10 deletions .github/workflows/linux-conda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,12 @@ jobs:
- name: upload
# TODO if: github.ref == 'refs/heads/master'
env:
ftp_server: ${{ secrets.FTP_SERVER }}
ftp_port: ${{ secrets.FTP_PORT }}
ftp_username: ${{ secrets.FTP_USERNAME }}
ftp_password: ${{ secrets.FTP_PASSWORD }}
remote_dir: ${{ secrets.FTP_REMOTE_DIR }}
local_file: "/Users/runner/miniconda3/envs/test/conda-bld/osx-64/lue-0.3.8-py39*.tar.bz2"
run: |
sudo apt-get install lftp
lftp -e "set sftp:auto-confirm yes;set ssl:verify-certificate false;mirror --reverse --delete --transfer-all --parallel=2 $local_file $remote_dir/download/osx-64; quit" -u $ftp_username,$ftp_password $ftp_server -p $ftp_port
uses: SamKirkland/FTP-Deploy-Action@v4.3.4
with:
server: ${{ secrets.FTP_SERVER }}
username: ${{ secrets.FTP_USERNAME }}
password: ${{ secrets.FTP_PASSWORD }}
port: ${{ secrets.FTP_PORT }}
protocol: ftps
local-dir: /usr/share/miniconda/envs/test/conda-bld/linux-64/
server-dir: ${{ secrets.FTP_REMOTE_DIR }}/download/linux-64/
21 changes: 10 additions & 11 deletions .github/workflows/macos-conda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:

strategy:
matrix:
os: ["macos-13"]
os: ["macos-latest"]
python-version: ["3.9"]
fail-fast: true

Expand Down Expand Up @@ -51,13 +51,12 @@ jobs:
- name: upload
# TODO if: github.ref == 'refs/heads/master'
env:
ftp_server: ${{ secrets.FTP_SERVER }}
ftp_port: ${{ secrets.FTP_PORT }}
ftp_username: ${{ secrets.FTP_USERNAME }}
ftp_password: ${{ secrets.FTP_PASSWORD }}
remote_dir: ${{ secrets.FTP_REMOTE_DIR }}
local_file: "/usr/share/miniconda/envs/test/conda-bld/linux-64/lue-0.3.8-py39*.tar.bz2"
run: |
brew install lftp
lftp -e "set sftp:auto-confirm yes;set ssl:verify-certificate false;mirror --reverse --delete --transfer-all --parallel=2 $local_file $remote_dir/download/linux-64; quit" -u $ftp_username,$ftp_password $ftp_server -p $ftp_port
uses: SamKirkland/FTP-Deploy-Action@v4.3.4
with:
server: ${{ secrets.FTP_SERVER }}
username: ${{ secrets.FTP_USERNAME }}
password: ${{ secrets.FTP_PASSWORD }}
port: ${{ secrets.FTP_PORT }}
protocol: ftps
local-dir: /Users/runner/miniconda3/envs/test/conda-bld/osx-64/
server-dir: ${{ secrets.FTP_REMOTE_DIR }}/download/osx-64/
19 changes: 9 additions & 10 deletions .github/workflows/windows-conda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,12 @@ jobs:
- name: upload
# TODO if: github.ref == 'refs/heads/master'
env:
ftp_server: ${{ secrets.FTP_SERVER }}
ftp_port: ${{ secrets.FTP_PORT }}
ftp_username: ${{ secrets.FTP_USERNAME }}
ftp_password: ${{ secrets.FTP_PASSWORD }}
remote_dir: ${{ secrets.FTP_REMOTE_DIR }}
local_file: "C:/Miniconda/envs/test/conda-bld/win-64/lue-0.3.8-py39*.tar.bz2"
run: |
conda install -c conda-forge lftp
lftp -e "set sftp:auto-confirm yes;set ssl:verify-certificate false;mirror --reverse --delete --transfer-all --parallel=2 $local_file $remote_dir/download/win-64; quit" -u $ftp_username,$ftp_password $ftp_server -p $ftp_port
uses: SamKirkland/FTP-Deploy-Action@v4.3.4
with:
server: ${{ secrets.FTP_SERVER }}
username: ${{ secrets.FTP_USERNAME }}
password: ${{ secrets.FTP_PASSWORD }}
port: ${{ secrets.FTP_PORT }}
protocol: ftps
local-dir: C:/Miniconda/envs/test/conda-bld/win-64/
server-dir: ${{ secrets.FTP_REMOTE_DIR }}/download/win-64/

0 comments on commit 887fe29

Please sign in to comment.