Skip to content

Commit

Permalink
workflows: Migrate from 'Netlify' to 'webgo'
Browse files Browse the repository at this point in the history
Currently it is not possible to deploy a page using the Netlify CLI
via GitHub Actions. This is due to the following error:

  Multiple possible build commands found
   ›   Error: Detected commands for: Hugo, Zola. Update your settings
              to specify which to use. Refer to https://ntl.fyi/dev-monorepo
	      for more information.

A bug report for this was submitted to Netlify's GitHub issue tracker
on 27 September 2024 [1]. However, a fix has not yet been provided.

Therefore, migrate from Netlify back to webgo.

Link: netlify/cli#6841 [1]
Signed-off-by: Stefan Kühnel <[email protected]>
  • Loading branch information
stefankuehnel committed Nov 23, 2024
1 parent dcc43f9 commit 535b7f8
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 26 deletions.
24 changes: 0 additions & 24 deletions .github/workflows/netlify.yml

This file was deleted.

34 changes: 34 additions & 0 deletions .github/workflows/webgo.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: webgo

on:
push:
branches:
- main

jobs:
deploy:
runs-on: ubuntu-latest

steps:
- name: "Checkout Repository"
uses: actions/checkout@v4

- name: "Install Zola"
run: |
sudo curl -sSLo zola.tar.gz https://github.com/getzola/zola/releases/download/v0.19.2/zola-v0.19.2-x86_64-unknown-linux-gnu.tar.gz
sudo tar -zxvf zola.tar.gz
sudo mv zola /usr/bin
- name: "Install rclone"
run: sudo -v ; curl https://rclone.org/install.sh | sudo bash

- name: "Build"
run: zola build

- name: "Deploy"
run: |-
rclone sync public/ :ftp:/ \
--ftp-host=${{ secrets.WEBGO_FTP_HOST }} \
--ftp-user=${{ secrets.WEBGO_FTP_USER }} \
--ftp-pass=$(rclone obscure ${{ secrets.WEBGO_FTP_PASSWORD }}) \
--ftp-explicit-tls=true
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Today I Learned (TIL)

[![Netlify](../../actions/workflows/netlify.yml/badge.svg)](../../actions/workflows/netlify.yml)
[![webgo](../../actions/workflows/webgo.yml/badge.svg)](../../actions/workflows/webgo.yml)

A collection of concise write-ups on small things I learn day to day across a variety of languages and technologies.

Expand Down Expand Up @@ -34,7 +34,7 @@ The following technologies, tools and platforms were used during development.
- **SSG**: [Zola](https://www.getzola.org)
- **Styling**: [SCSS](https://sass-lang.com)
- **CI/CD**: [GitHub Actions](https://github.com/actions)
- **Deployment**: [Netlify](https://netlify.com)
- **Deployment**: [webgo](https://webgo.de)

## 👷‍ Error Found?

Expand Down

0 comments on commit 535b7f8

Please sign in to comment.