From c1e441d7a14db9349ea384df647a6a2f6a5d6c03 Mon Sep 17 00:00:00 2001 From: Matthew Scroggs Date: Fri, 15 Nov 2024 15:15:25 +0000 Subject: [PATCH] remove rsync to old server --- .github/workflows/build.yml | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 752f59c..729a284 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -21,25 +21,3 @@ jobs: name: Install bundle - run: bundle exec jekyll build name: Build website - - name: Install SSH key - uses: shimataro/ssh-key-action@v2 - with: - key: ${{ secrets.WEBSITE_OPENSSH_PRIVATE_KEY }} - known_hosts: ${{ secrets.WEBSITE_KNOWN_HOSTS }} - if: ${{ github.repository == 'FEniCS/web' && github.ref == 'refs/heads/main' }} - - name: rsync over ssh - run: rsync -r ./_site/* github@fenicsproject.org:/var/www/vhosts/fenicsproject.org/newsite - if: ${{ github.repository == 'FEniCS/web' && github.ref == 'refs/heads/main' }} - - - name: Make artifact zip - run: | - sudo apt-get install -y zip - zip -q -r _site.zip _site - if: ${{ github.repository == 'FEniCS/web' && github.ref != 'refs/heads/main' && github.event_name == 'pull_request' }} - - name: Upload build as artifact - uses: actions/upload-artifact@v4 - with: - name: website - path: _site.zip - if-no-files-found: error - if: ${{ github.repository == 'FEniCS/web' && github.ref != 'refs/heads/main' && github.event_name == 'pull_request' }}