-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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]>
- Loading branch information
1 parent
dcc43f9
commit 535b7f8
Showing
3 changed files
with
36 additions
and
26 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
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 |
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