Skip to content

Merge pull request #13 from gosub-io/favicon #14

Merge pull request #13 from gosub-io/favicon

Merge pull request #13 from gosub-io/favicon #14

Workflow file for this run

name: Build and Deploy
on:
push:
tags:
- v*
branches:
- deploy
jobs:
build_and_deploy:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Build gosub website
uses: withastro/action@v2
- name: SSH setup
run: |
mkdir -p ~/.ssh
echo "$SSH_DEPLOY_KEY" > ~/.ssh/id_ed25519
chmod 600 ~/.ssh/id_ed25519
echo "$SSH_KNOWN_HOSTS" > ~/.ssh/known_hosts
env:
SSH_KNOWN_HOSTS: ${{secrets.SSH_KNOWN_HOSTS}}
SSH_DEPLOY_KEY: ${{secrets.SSH_DEPLOY_KEY}}
- name: Rsync
run: rsync -avz dist/ deploy@developer.gosub.io:/wwwroot/gosub.io/public