All checks were successful
Generate and upload hugo website / generate_and_upload_site (push) Successful in 23s
42 lines
998 B
YAML
42 lines
998 B
YAML
---
|
|
name: Generate and upload hugo website
|
|
on:
|
|
push:
|
|
|
|
jobs:
|
|
generate_and_upload_site:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Update Packages
|
|
run: sudo apt update
|
|
|
|
#- name: Install Go
|
|
# run: sudo apt install golang-go -y
|
|
|
|
#- name: Building Hugo
|
|
# run: go install github.com/gohugoio/hugo@latest
|
|
|
|
- name: Install Hugo
|
|
run: sudo apt install hugo -y
|
|
|
|
- name: Check out repository code
|
|
uses: actions/checkout@v4
|
|
|
|
#- name: Generate the website
|
|
# run: ~/go/bin/hugo
|
|
|
|
- name: Build the website
|
|
run: hugo
|
|
|
|
- name: Sending my key to file
|
|
run: echo "${{ secrets.RUNNER_SSH_KEY }}" > ~/key
|
|
|
|
- name: Protecting keyfile
|
|
run: chmod 600 ~/key
|
|
|
|
- name: Adding siab to known hosts
|
|
run: echo "siab.henv.eu ${{ secrets.SIAB_FINGERPRINT }}" > ~/.ssh/known_hosts
|
|
|
|
- name: Copy files over to webserver
|
|
run: scp -v -i ~/key -r ${{ gitea.workspace }}/public/* gitea_runner@siab.henv.eu:/srv/nginx/webpage
|