Merge pull request #104 from ivoa/add-newsletter-archetype #38
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Deploy the main version of the website" | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Setup Hugo | |
uses: ./.github/actions/setup-hugo | |
- name: Setup PageFind | |
uses: ./.github/actions/setup-pagefind | |
- name: Build the website | |
run: make html | |
- name: Deploy the website | |
uses: Dylan700/sftp-upload-action@latest | |
with: | |
username: webstage | |
server: web.ivoa.net | |
port: ${{ secrets.SFTP_PORT }} | |
key: ${{ secrets.STAGE_ID }} | |
uploads: | | |
./public/ => ./ivoa-web-stage/ |