Merge pull request #82 from ivoa/iss61 #27
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@v2 | |
- name: Setup Hugo | |
uses: ./.github/actions/setup-hugo | |
- name: Build the website | |
run: ~/hugo | |
- 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/ |