mirror of
https://github.com/jbowdre/runtimeterror.git
synced 2024-11-26 08:52:18 +00:00
Compare commits
19 commits
13c8bdccfa
...
3bf2fd4642
Author | SHA1 | Date | |
---|---|---|---|
3bf2fd4642 | |||
368413597e | |||
fbd7f70939 | |||
50d43c19b9 | |||
577279df27 | |||
bd00a037a3 | |||
80316ec72f | |||
6dcc6ba697 | |||
7faca4f360 | |||
f3746e4047 | |||
05852d3803 | |||
847951b142 | |||
c81969204d | |||
4c460309a7 | |||
a20372f224 | |||
1b90235577 | |||
530a5c2433 | |||
a3da8809ec | |||
92da8b7593 |
7 changed files with 16 additions and 66 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
|
# only run on changes to main
|
||||||
on:
|
on:
|
||||||
|
@ -17,38 +17,30 @@ defaults:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
deploy:
|
deploy:
|
||||||
|
name: Build and deploy Hugo site
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
env:
|
|
||||||
HUGO_VERSION: "0.121.1"
|
|
||||||
steps:
|
steps:
|
||||||
- name: Install Hugo CLI
|
- name: Hugo setup
|
||||||
run: |
|
uses: peaceiris/actions-hugo@v2.6.0
|
||||||
wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb \
|
with:
|
||||||
&& sudo dpkg -i ${{ runner.temp }}/hugo.deb
|
hugo-version: '0.121.1'
|
||||||
- name: Install Dart Sass
|
extended: true
|
||||||
run: sudo snap install dart-sass
|
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
- name: Install Node.js dependencies
|
|
||||||
run: "[[ -f package-lock.json || -f npm-shrinkwrap.json ]] && npm ci || true"
|
|
||||||
- name: Build with Hugo
|
- name: Build with Hugo
|
||||||
env:
|
run: hugo --minify
|
||||||
# For maximum backward compatibility with Hugo modules
|
- name: Insert 404 page
|
||||||
HUGO_ENVIRONMENT: production
|
|
||||||
HUGO_ENV: production
|
|
||||||
run: |
|
run: |
|
||||||
hugo \
|
cp public/not_found/index.html public/not_found.html
|
||||||
--minify \
|
|
||||||
--baseURL "https://runtimeterror.dev/"
|
|
||||||
- name: Highlight with Torchlight
|
- name: Highlight with Torchlight
|
||||||
run: |
|
run: |
|
||||||
npm i @torchlight-api/torchlight-cli
|
npm i @torchlight-api/torchlight-cli
|
||||||
npx torchlight
|
npx torchlight
|
||||||
- name: Deploy to neocities
|
- name: Deploy to Neocities
|
||||||
uses: bcomnes/deploy-to-neocities@v1
|
uses: bcomnes/deploy-to-neocities@v1
|
||||||
with:
|
with:
|
||||||
api_token: ${{ secrets.NEOCITIES_API_TOKEN }}
|
api_token: ${{ secrets.NEOCITIES_API_TOKEN }}
|
||||||
cleanup: false
|
cleanup: true
|
||||||
dist_dir: public
|
dist_dir: public
|
|
@ -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)
|
[![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)
|
|
@ -1,2 +1,2 @@
|
||||||
comments = true
|
comments = false
|
||||||
analytics = false
|
analytics = false
|
|
@ -1 +0,0 @@
|
||||||
baseURL = "https://preview--runtimeterrordev.netlify.app"
|
|
|
@ -1,2 +0,0 @@
|
||||||
comments = false
|
|
||||||
analytics = false
|
|
|
@ -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:
|
And I will add in a `storage` property as well which will automatically adjust the deployed VMDK size to match the specified input:
|
||||||
```yaml
|
```yaml
|
||||||
|
# torchlight! {"torchlightAnnotations": false}
|
||||||
# torchlight! {"lineNumbers": true}
|
# torchlight! {"lineNumbers": true}
|
||||||
[...]
|
[...]
|
||||||
description: '${input.description}'
|
description: '${input.description}'
|
||||||
|
@ -202,7 +203,6 @@ inputs:
|
||||||
type: string
|
type: string
|
||||||
title: Point of Contact Email
|
title: Point of Contact Email
|
||||||
default: jack.shephard@example.com
|
default: jack.shephard@example.com
|
||||||
pattern: '^[^\s@]+@[^\s@]+\.[^\s@]+$'
|
|
||||||
ticket:
|
ticket:
|
||||||
type: string
|
type: string
|
||||||
title: Ticket/Request Number
|
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
|
#### ABX Action
|
||||||
I'll click back to **Extensibility > Library > Actions** and then **+ New Action**. I give the new action a clever title and description:
|
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.
|
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)
|
![Language selection](20210901_action_select_language.png)
|
||||||
|
|
39
netlify.toml
39
netlify.toml
|
@ -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
|
|
Loading…
Reference in a new issue