Skip to content

Commit

Permalink
remove rsync to old server
Browse files Browse the repository at this point in the history
  • Loading branch information
mscroggs committed Nov 15, 2024
1 parent 9d1fdc5 commit c1e441d
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/* [email protected]:/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' }}

0 comments on commit c1e441d

Please sign in to comment.