diff --git a/.github/workflows/deploy-to-neocities.yml b/.github/workflows/deploy-to-neocities.yml index a03385c..e06ea3d 100644 --- a/.github/workflows/deploy-to-neocities.yml +++ b/.github/workflows/deploy-to-neocities.yml @@ -1,4 +1,4 @@ -name: Deploy to neocities +name: Deploy to Neocities # only run on changes to main on: @@ -16,7 +16,8 @@ defaults: shell: bash jobs: - deploy: + build: + name: Build Hugo site runs-on: ubuntu-latest env: HUGO_VERSION: "0.121.1" @@ -40,12 +41,54 @@ jobs: HUGO_ENV: production run: | hugo \ - --minify \ - --baseURL "https://runtimeterror.dev/" + --minify + - 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: Install Node.js dependencies + run: "[[ -f package-lock.json || -f npm-shrinkwrap.json ]] && npm ci || true" + - 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: diff --git a/README.md b/README.md index b161252..7b94f26 100644 --- a/README.md +++ b/README.md @@ -1 +1 @@ -[![Netlify Status](https://api.netlify.com/api/v1/badges/7cd6b595-2b3b-403d-a29f-c4f27e8bd366/deploy-status)](https://app.netlify.com/sites/runtimeterrordev/deploys) \ No newline at end of file +[![Neocities Deployment Status](https://github.com/jbowdre/runtimeterror/actions/workflows/deploy-to-neocities.yml/badge.svg)](https://github.com/jbowdre/runtimeterror/actions/workflows/deploy-to-neocities.yml) \ No newline at end of file diff --git a/config/local/params.toml b/config/local/params.toml index 3b5ce10..c8a1743 100644 --- a/config/local/params.toml +++ b/config/local/params.toml @@ -1,2 +1,2 @@ -comments = true +comments = false analytics = false \ No newline at end of file diff --git a/config/preview/hugo.toml b/config/preview/hugo.toml deleted file mode 100644 index 7dc856f..0000000 --- a/config/preview/hugo.toml +++ /dev/null @@ -1 +0,0 @@ -baseURL = "https://preview--runtimeterrordev.netlify.app" \ No newline at end of file diff --git a/config/preview/params.toml b/config/preview/params.toml deleted file mode 100644 index c8a1743..0000000 --- a/config/preview/params.toml +++ /dev/null @@ -1,2 +0,0 @@ -comments = false -analytics = false \ No newline at end of file diff --git a/content/posts/run-scripts-in-guest-os-with-vra-abx-actions/index.md b/content/posts/run-scripts-in-guest-os-with-vra-abx-actions/index.md index b48fef3..198d9a6 100644 --- a/content/posts/run-scripts-in-guest-os-with-vra-abx-actions/index.md +++ b/content/posts/run-scripts-in-guest-os-with-vra-abx-actions/index.md @@ -97,6 +97,7 @@ resources: And I will add in a `storage` property as well which will automatically adjust the deployed VMDK size to match the specified input: ```yaml +# torchlight! {"torchlightAnnotations": false} # torchlight! {"lineNumbers": true} [...] description: '${input.description}' @@ -202,7 +203,6 @@ inputs: type: string title: Point of Contact Email default: jack.shephard@example.com - pattern: '^[^\s@]+@[^\s@]+\.[^\s@]+$' ticket: type: string title: Ticket/Request Number @@ -292,7 +292,7 @@ Once all those constants are created I can move on to the meat of this little pr #### ABX Action I'll click back to **Extensibility > Library > Actions** and then **+ New Action**. I give the new action a clever title and description: -![Create a new action](20210901_create_action.png)] +![Create a new action](20210901_create_action.png) I then hit the language dropdown near the top left and select to use `powershell` so that I can use those sweet, sweet PowerCLI cmdlets. ![Language selection](20210901_action_select_language.png) diff --git a/netlify.toml b/netlify.toml deleted file mode 100644 index d62d2ed..0000000 --- a/netlify.toml +++ /dev/null @@ -1,39 +0,0 @@ -[build] - publish = "public" - -[build.environment] - HUGO_VERSION = "0.121.1" - -[context.production] - command = """ - hugo - npm i @torchlight-api/torchlight-cli - npx torchlight - """ - -[context.preview] - command = """ - hugo --environment preview - npm i @torchlight-api/torchlight-cli - npx torchlight - """ - [[headers]] - for = "/*" - [headers.values] - X-Robots-Tag = "noindex" - -[context.drafts] - command = """ - hugo --environment drafts -D - npm i @torchlight-api/torchlight-cli - npx torchlight - """ - [[headers]] - for = "/*" - [headers.values] - X-Robots-Tag = "noindex" - -[[redirects]] - from = "/*" - to = "/404/" - status = 404 \ No newline at end of file