From 305f6c5642d57b8e0f188aa27d72e7d2d2d74fea Mon Sep 17 00:00:00 2001 From: ruslan Date: Mon, 21 Jul 2025 20:45:22 +0200 Subject: [PATCH] Update hugo.yml --- .github/workflows/hugo.yml | 49 -------------------------------------- 1 file changed, 49 deletions(-) diff --git a/.github/workflows/hugo.yml b/.github/workflows/hugo.yml index fa5c75d..2dfbfd0 100644 --- a/.github/workflows/hugo.yml +++ b/.github/workflows/hugo.yml @@ -60,52 +60,3 @@ jobs: --gc \ --minify \ --baseURL "${{ steps.pages.outputs.base_url }}/" - - name: Change color - run: sed -i 's/peachpuff/rebeccapurple/g' public/css/main.*.css - - name: Change URI - run: find public -type f -exec sed -i 's/\/\/fruw.org/\/\/fruworg.github.io/g' {} + - - name: Upload artifact - uses: actions/upload-pages-artifact@v3 - with: - path: ./public - - # Deployment job - deploy-page: - environment: - name: github-pages - url: ${{ steps.deployment.outputs.page_url }} - runs-on: ubuntu-latest - needs: build - steps: - - name: Deploy to GitHub Pages - id: deployment - uses: actions/deploy-pages@v4 - - deploy-neocities: - environment: - name: neocities - runs-on: ubuntu-latest - needs: build - steps: - - uses: actions/checkout@v3 - - uses: actions/download-artifact@v4 - with: - path: . - - name: Create directory - run: mkdir public - - name: Unapacking artifact - run: tar xf github-pages/artifact.tar -C public - - name: Change URI - run: find public -type f -exec sed -i 's/\/\/fruworg.github.io/\/\/fruworg.neocities.org/g' {} + - - name: Rename 404 page - run: mv public/404.html public/not_found.html - - name: Change color - run: sed -i 's/rebeccapurple/mediumseagreen/g' public/css/main.*.css - - name: Delete id_rsa.pub - run: rm public/id_rsa.pub - - name: Deploy to Neocities - uses: bcomnes/deploy-to-neocities@v1 - with: - api_token: ${{ secrets.NEOCITIES_API_TOKEN }} - cleanup: true - dist_dir: public