mirror of
https://github.com/jbowdre/runtimeterror.git
synced 2024-11-29 18:02:18 +00:00
Compare commits
No commits in common. "3bf2fd464251fb3e03911b8373d52e316245740a" and "13c8bdccfa8c770a0e48a9f4e33cbdd9e68d2f65" have entirely different histories.
3bf2fd4642
...
13c8bdccfa
7 changed files with 66 additions and 16 deletions
32
.github/workflows/deploy-to-neocities.yml
vendored
32
.github/workflows/deploy-to-neocities.yml
vendored
|
@ -1,4 +1,4 @@
|
|||
name: Deploy to Neocities
|
||||
name: Deploy to neocities
|
||||
|
||||
# only run on changes to main
|
||||
on:
|
||||
|
@ -17,30 +17,38 @@ defaults:
|
|||
|
||||
jobs:
|
||||
deploy:
|
||||
name: Build and deploy Hugo site
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
HUGO_VERSION: "0.121.1"
|
||||
steps:
|
||||
- name: Hugo setup
|
||||
uses: peaceiris/actions-hugo@v2.6.0
|
||||
with:
|
||||
hugo-version: '0.121.1'
|
||||
extended: true
|
||||
- name: Install Hugo CLI
|
||||
run: |
|
||||
wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb \
|
||||
&& sudo dpkg -i ${{ runner.temp }}/hugo.deb
|
||||
- name: Install Dart Sass
|
||||
run: sudo snap install dart-sass
|
||||
- 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: Build with Hugo
|
||||
run: hugo --minify
|
||||
- name: Insert 404 page
|
||||
env:
|
||||
# For maximum backward compatibility with Hugo modules
|
||||
HUGO_ENVIRONMENT: production
|
||||
HUGO_ENV: production
|
||||
run: |
|
||||
cp public/not_found/index.html public/not_found.html
|
||||
hugo \
|
||||
--minify \
|
||||
--baseURL "https://runtimeterror.dev/"
|
||||
- name: Highlight with Torchlight
|
||||
run: |
|
||||
npm i @torchlight-api/torchlight-cli
|
||||
npx torchlight
|
||||
- name: Deploy to Neocities
|
||||
- name: Deploy to neocities
|
||||
uses: bcomnes/deploy-to-neocities@v1
|
||||
with:
|
||||
api_token: ${{ secrets.NEOCITIES_API_TOKEN }}
|
||||
cleanup: true
|
||||
cleanup: false
|
||||
dist_dir: public
|
|
@ -1 +1 @@
|
|||
[![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)
|
||||
[![Netlify Status](https://api.netlify.com/api/v1/badges/7cd6b595-2b3b-403d-a29f-c4f27e8bd366/deploy-status)](https://app.netlify.com/sites/runtimeterrordev/deploys)
|
|
@ -1,2 +1,2 @@
|
|||
comments = false
|
||||
comments = true
|
||||
analytics = false
|
1
config/preview/hugo.toml
Normal file
1
config/preview/hugo.toml
Normal file
|
@ -0,0 +1 @@
|
|||
baseURL = "https://preview--runtimeterrordev.netlify.app"
|
2
config/preview/params.toml
Normal file
2
config/preview/params.toml
Normal file
|
@ -0,0 +1,2 @@
|
|||
comments = false
|
||||
analytics = false
|
|
@ -97,7 +97,6 @@ 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}'
|
||||
|
@ -203,6 +202,7 @@ 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)
|
||||
|
|
39
netlify.toml
Normal file
39
netlify.toml
Normal file
|
@ -0,0 +1,39 @@
|
|||
[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
|
Loading…
Reference in a new issue