From 368413597e9b160d139edab0ce8df71e391c5fee Mon Sep 17 00:00:00 2001 From: John Bowdre Date: Sun, 21 Jan 2024 15:29:49 -0600 Subject: [PATCH] collapse workflow to single job --- .github/workflows/deploy-to-neocities.yml | 42 ++--------------------- 1 file changed, 2 insertions(+), 40 deletions(-) diff --git a/.github/workflows/deploy-to-neocities.yml b/.github/workflows/deploy-to-neocities.yml index 69f9d70..2f498c9 100644 --- a/.github/workflows/deploy-to-neocities.yml +++ b/.github/workflows/deploy-to-neocities.yml @@ -16,8 +16,8 @@ defaults: shell: bash jobs: - build: - name: Build Hugo site + deploy: + name: Build and deploy Hugo site runs-on: ubuntu-latest steps: - name: Hugo setup @@ -34,48 +34,10 @@ jobs: - name: Insert 404 page run: | cp public/not_found/index.html public/not_found.html - - name: Upload artifact - uses: actions/upload-artifact@v4 - with: - name: build - path: public - retention-days: 1 - - highlight: - name: Highlight code with Torchlight - runs-on: ubuntu-latest - needs: build - steps: - - name: Checkout - uses: actions/checkout@v4 - with: - submodules: recursive - - name: Download artifact - uses: actions/download-artifact@v4 - with: - name: build - path: public - name: Highlight with Torchlight run: | npm i @torchlight-api/torchlight-cli npx torchlight - - name: Upload artifact - uses: actions/upload-artifact@v4 - with: - name: highlight - path: public - retention-days: 1 - - deploy: - name: Publish to Neocities - runs-on: ubuntu-latest - needs: highlight - steps: - - name: Download artifact - uses: actions/download-artifact@v4 - with: - name: highlight - path: public - name: Deploy to neocities uses: bcomnes/deploy-to-neocities@v1 with: