Skip to content

Commit

Permalink
CI: no uploads at pull request
Browse files Browse the repository at this point in the history
  • Loading branch information
OliverSchmitz committed Nov 5, 2024
1 parent a08ad00 commit bc5bb69
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
steps:

- name: Checkout Campo
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: configure system
run: |
Expand All @@ -34,7 +34,7 @@ jobs:
# sudo apt-get autoremove
sudo apt-get --yes install lftp
- uses: conda-incubator/setup-miniconda@v2
- uses: conda-incubator/setup-miniconda@v3
with:
activate-environment: campo
environment-file: environment/configuration/conda_environment.yaml
Expand All @@ -52,6 +52,7 @@ jobs:
rm -f package/dist/*gz
- name: Deploy wheel
if: github.repository == 'computationalgeography/campo'
run: |
mkdir -p $HOME/.ssh
echo "HostKeyAlgorithms ssh-rsa" >> $HOME/.ssh/config
Expand All @@ -61,12 +62,13 @@ jobs:
lftp -c "open --user ${{ env.ftp_username }} --password ${{ env.ftp_password }} -p ${{ env.ftp_port }} ${{ env.ftp_server }};set sftp:auto-confirm yes;set ssl:verify-certificate false;mirror --verbose --reverse --continue package/dist/ ${{ env.remote_dir2 }}"
- name: Deploy documentation
if: github.ref == 'refs/heads/master'
if: github.repository == 'computationalgeography/campo' && github.ref == 'refs/heads/master'
run: |
cd ${{ env.build-directory }}
# lftp -c "open --user ${{ env.ftp_username }} --password ${{ env.ftp_password }} -p ${{ env.ftp_port }} ${{ env.ftp_server }};set sftp:auto-confirm yes;set ssl:verify-certificate false;mirror --verbose --reverse --continue --parallel=2 documentation/_build/ ${{ env.remote_dir1 }}"
- name: Deploy development documentation
if: github.repository == 'computationalgeography/campo'
run: |
cd ${{ env.build-directory }}
lftp -c "open --user ${{ env.ftp_username }} --password ${{ env.ftp_password }} -p ${{ env.ftp_port }} ${{ env.ftp_server }};set sftp:auto-confirm yes;set ssl:verify-certificate false;mirror --verbose --reverse --continue --parallel=2 documentation/_build/ ${{ env.remote_dir3 }}"

0 comments on commit bc5bb69

Please sign in to comment.