Skip to content

Commit 535b7f8

Browse files
committed
workflows: Migrate from 'Netlify' to 'webgo'
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]>
1 parent dcc43f9 commit 535b7f8

File tree

3 files changed

+36
-26
lines changed

3 files changed

+36
-26
lines changed

.github/workflows/netlify.yml

Lines changed: 0 additions & 24 deletions
This file was deleted.

.github/workflows/webgo.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: webgo
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
deploy:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: "Checkout Repository"
14+
uses: actions/checkout@v4
15+
16+
- name: "Install Zola"
17+
run: |
18+
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
19+
sudo tar -zxvf zola.tar.gz
20+
sudo mv zola /usr/bin
21+
22+
- name: "Install rclone"
23+
run: sudo -v ; curl https://rclone.org/install.sh | sudo bash
24+
25+
- name: "Build"
26+
run: zola build
27+
28+
- name: "Deploy"
29+
run: |-
30+
rclone sync public/ :ftp:/ \
31+
--ftp-host=${{ secrets.WEBGO_FTP_HOST }} \
32+
--ftp-user=${{ secrets.WEBGO_FTP_USER }} \
33+
--ftp-pass=$(rclone obscure ${{ secrets.WEBGO_FTP_PASSWORD }}) \
34+
--ftp-explicit-tls=true

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Today I Learned (TIL)
22

3-
[![Netlify](../../actions/workflows/netlify.yml/badge.svg)](../../actions/workflows/netlify.yml)
3+
[![webgo](../../actions/workflows/webgo.yml/badge.svg)](../../actions/workflows/webgo.yml)
44

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

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

3939
## 👷‍ Error Found?
4040

0 commit comments

Comments
 (0)