diff --git a/.github/workflows/netlify.yml b/.github/workflows/netlify.yml deleted file mode 100644 index 0514351..0000000 --- a/.github/workflows/netlify.yml +++ /dev/null @@ -1,24 +0,0 @@ -name: Netlify - -on: - push: - branches: - - main - -jobs: - deploy: - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v3 - - name: Setup Zola - run: sudo snap install zola --edge - - name: Build Project - run: zola build - - name: Deploy to Production - run: | - npx netlify deploy \ - --prod \ - --dir ./public \ - --site ${{ secrets.NETLIFY_SITE_ID }} \ - --auth ${{ secrets.NETLIFY_AUTH_TOKEN }} diff --git a/.github/workflows/webgo.yml b/.github/workflows/webgo.yml new file mode 100644 index 0000000..76698d9 --- /dev/null +++ b/.github/workflows/webgo.yml @@ -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 \ No newline at end of file diff --git a/README.md b/README.md index c0cf23c..db637dd 100644 --- a/README.md +++ b/README.md @@ -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. @@ -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?