mirror of
https://github.com/bcomnes/deploy-to-neocities.git
synced 2026-01-22 17:24:28 +00:00
Compare commits
53 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
fa415d51e5 | ||
|
|
def67b48c6 | ||
|
|
fea2d4780c | ||
|
|
69e0bdd342 | ||
|
|
b0b5978946 | ||
|
|
5ba6c30f76 | ||
|
|
172b21e45a | ||
|
|
e084154f71 | ||
|
|
87e826a3d7 | ||
|
|
82a2a1e0f3 | ||
|
|
b2d96e7f15 | ||
|
|
fcc451d9e7 | ||
|
|
7902c02034 | ||
|
|
07f936cc5a | ||
|
|
6c3fb3be98 | ||
|
|
e9268c51ec | ||
|
|
5bdb1133e9 | ||
|
|
a552149863 | ||
|
|
6239763757 | ||
|
|
654c02d61e | ||
|
|
44798856b1 | ||
|
|
e5cdffd285 | ||
|
|
2e14724f72 | ||
|
|
269cea9a85 | ||
|
|
b05435526e | ||
|
|
c141314092 | ||
|
|
5376b1e544 | ||
|
|
c5b9053826 | ||
|
|
c20b64ec3a | ||
|
|
dc4d4eeff9 | ||
|
|
d2a405bb36 | ||
|
|
73581be8da | ||
|
|
3050c92cd1 | ||
|
|
14bee33aca | ||
|
|
01a9dd76fb | ||
|
|
ea2f09c886 | ||
|
|
e51d6e0f99 | ||
|
|
be68564ed0 | ||
|
|
23f364e349 | ||
|
|
33ef0e7fab | ||
|
|
94fb156784 | ||
|
|
44e467a189 | ||
|
|
17d6a4b01b | ||
|
|
f5e446cd23 | ||
|
|
d551e2e3dc | ||
|
|
1f6ee0a605 | ||
|
|
3d49a264a5 | ||
|
|
87f22c65f9 | ||
|
|
47edf7607e | ||
|
|
c51b62c31b | ||
|
|
7c7e9080c0 | ||
|
|
b2793d2827 | ||
|
|
cadbbff700 |
15
.github/workflows/neocities.yml
vendored
15
.github/workflows/neocities.yml
vendored
@@ -11,21 +11,20 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2.4.0
|
||||||
# Set up any tools and build steps here
|
# Set up any tools and build steps here
|
||||||
# This example uses a Node.js toolchain to build a site
|
# This example uses a Node.js toolchain to build a site
|
||||||
- name: Use Node.js
|
- name: Use Node.js
|
||||||
uses: actions/setup-node@v2.1.4
|
uses: actions/setup-node@v2.5.1
|
||||||
with:
|
with:
|
||||||
node-version: 12
|
node-version: 15
|
||||||
- name: Install deps and build
|
- run: npm i
|
||||||
run: |
|
- run: npm run build
|
||||||
npm i
|
|
||||||
npm run build
|
|
||||||
# When the dist_dir is ready, deploy it to neocities
|
# When the dist_dir is ready, deploy it to neocities
|
||||||
- name: Deploy to neocities
|
- name: Deploy to neocities
|
||||||
uses: bcomnes/deploy-to-neocities@master # dont use master in production
|
uses: bcomnes/deploy-to-neocities@master # dont use master in production
|
||||||
with:
|
with:
|
||||||
api_token: ${{ secrets.NEOCITIES_API_TOKEN }}
|
api_token: ${{ secrets.NEOCITIES_API_TOKEN }}
|
||||||
cleanup: false
|
cleanup: true
|
||||||
dist_dir: public
|
dist_dir: public
|
||||||
|
protected_files: 'dropbox/*'
|
||||||
|
|||||||
4
.github/workflows/release.yml
vendored
4
.github/workflows/release.yml
vendored
@@ -14,11 +14,11 @@ jobs:
|
|||||||
version_and_release:
|
version_and_release:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2.3.2
|
- uses: actions/checkout@v2.4.0
|
||||||
with:
|
with:
|
||||||
# fetch full history so things like auto-changelog work properly
|
# fetch full history so things like auto-changelog work properly
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
- uses: actions/setup-node@v2.1.4
|
- uses: actions/setup-node@v2.5.1
|
||||||
with:
|
with:
|
||||||
node-version: ${{ env.node_version }}
|
node-version: ${{ env.node_version }}
|
||||||
# setting a registry enables the NODE_AUTH_TOKEN env variable where we can set an npm token. REQUIRED
|
# setting a registry enables the NODE_AUTH_TOKEN env variable where we can set an npm token. REQUIRED
|
||||||
|
|||||||
14
.github/workflows/test.yml
vendored
14
.github/workflows/test.yml
vendored
@@ -9,24 +9,22 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
os: [ubuntu-latest]
|
os: [ubuntu-latest]
|
||||||
node: [12]
|
node: [15]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2.4.0
|
||||||
- name: Use Node.js ${{ matrix.node }}
|
- name: Use Node.js ${{ matrix.node }}
|
||||||
uses: actions/setup-node@v2.1.4
|
uses: actions/setup-node@v2.5.1
|
||||||
with:
|
with:
|
||||||
node-version: ${{ matrix.node }}
|
node-version: ${{ matrix.node }}
|
||||||
- name: npm install && npm test
|
- run: npm i
|
||||||
run: |
|
- run: npm test
|
||||||
npm i
|
|
||||||
npm test
|
|
||||||
|
|
||||||
automerge:
|
automerge:
|
||||||
needs: test
|
needs: test
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: fastify/github-action-merge-dependabot@v1.1.1
|
- uses: fastify/github-action-merge-dependabot@v2.7.1
|
||||||
if: ${{ github.actor == 'dependabot[bot]' && github.event_name == 'pull_request' && contains(github.head_ref, 'dependabot/github_actions') }}
|
if: ${{ github.actor == 'dependabot[bot]' && github.event_name == 'pull_request' && contains(github.head_ref, 'dependabot/github_actions') }}
|
||||||
with:
|
with:
|
||||||
github-token: ${{secrets.github_token}}
|
github-token: ${{secrets.github_token}}
|
||||||
|
|||||||
17
.vscode/launch.json
vendored
17
.vscode/launch.json
vendored
@@ -1,17 +0,0 @@
|
|||||||
{
|
|
||||||
// Use IntelliSense to learn about possible attributes.
|
|
||||||
// Hover to view descriptions of existing attributes.
|
|
||||||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
|
||||||
"version": "0.2.0",
|
|
||||||
"configurations": [
|
|
||||||
{
|
|
||||||
"type": "node",
|
|
||||||
"request": "launch",
|
|
||||||
"name": "Launch Program",
|
|
||||||
"skipFiles": [
|
|
||||||
"<node_internals>/**"
|
|
||||||
],
|
|
||||||
"program": "${workspaceFolder}/test.js"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
62
CHANGELOG.md
62
CHANGELOG.md
@@ -7,7 +7,67 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
|
|
||||||
Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
||||||
|
|
||||||
## [v1.0.17](https://github.com/bcomnes/deploy-to-neocities/compare/v1.0.16...v1.0.17)
|
## [v1.1.2](https://github.com/bcomnes/deploy-to-neocities/compare/v1.1.1...v1.1.2)
|
||||||
|
|
||||||
|
### Merged
|
||||||
|
|
||||||
|
- add additional website [`#69`](https://github.com/bcomnes/deploy-to-neocities/pull/69)
|
||||||
|
- Add "Frontier Corps" [`#68`](https://github.com/bcomnes/deploy-to-neocities/pull/68)
|
||||||
|
- chore(deps): bump actions/setup-node from 2.5.0 to 2.5.1 [`#67`](https://github.com/bcomnes/deploy-to-neocities/pull/67)
|
||||||
|
- chore(deps): bump fastify/github-action-merge-dependabot [`#65`](https://github.com/bcomnes/deploy-to-neocities/pull/65)
|
||||||
|
- chore(deps): bump fastify/github-action-merge-dependabot [`#64`](https://github.com/bcomnes/deploy-to-neocities/pull/64)
|
||||||
|
- chore(deps): bump actions/setup-node from 2.4.1 to 2.5.0 [`#63`](https://github.com/bcomnes/deploy-to-neocities/pull/63)
|
||||||
|
- chore(deps): bump fastify/github-action-merge-dependabot [`#57`](https://github.com/bcomnes/deploy-to-neocities/pull/57)
|
||||||
|
- chore(deps): bump actions/checkout from 2.3.5 to 2.4.0 [`#56`](https://github.com/bcomnes/deploy-to-neocities/pull/56)
|
||||||
|
- chore(deps): bump actions/checkout from 2.3.4 to 2.3.5 [`#55`](https://github.com/bcomnes/deploy-to-neocities/pull/55)
|
||||||
|
- chore(deps): bump @actions/core from 1.5.0 to 1.6.0 [`#54`](https://github.com/bcomnes/deploy-to-neocities/pull/54)
|
||||||
|
- chore(deps): bump actions/setup-node from 2.4.0 to 2.4.1 [`#53`](https://github.com/bcomnes/deploy-to-neocities/pull/53)
|
||||||
|
- chore(deps): bump fastify/github-action-merge-dependabot [`#52`](https://github.com/bcomnes/deploy-to-neocities/pull/52)
|
||||||
|
- chore(deps-dev): bump cpx2 from 3.0.2 to 4.0.0 [`#51`](https://github.com/bcomnes/deploy-to-neocities/pull/51)
|
||||||
|
|
||||||
|
### Commits
|
||||||
|
|
||||||
|
- Update site build and ncc [`def67b4`](https://github.com/bcomnes/deploy-to-neocities/commit/def67b48c6e28d4544d8dd2bd92ab53f56856e40)
|
||||||
|
- Fix static deploy stuff with bandaid [`fea2d47`](https://github.com/bcomnes/deploy-to-neocities/commit/fea2d4780c7a98bcdf5738c1c259d66ff115326a)
|
||||||
|
|
||||||
|
## [v1.1.1](https://github.com/bcomnes/deploy-to-neocities/compare/v1.1.0...v1.1.1) - 2021-08-20
|
||||||
|
|
||||||
|
### Merged
|
||||||
|
|
||||||
|
- chore(deps): bump @actions/core from 1.4.0 to 1.5.0 [`#50`](https://github.com/bcomnes/deploy-to-neocities/pull/50)
|
||||||
|
- chore(deps): bump fastify/github-action-merge-dependabot [`#49`](https://github.com/bcomnes/deploy-to-neocities/pull/49)
|
||||||
|
- chore(deps): bump fastify/github-action-merge-dependabot [`#48`](https://github.com/bcomnes/deploy-to-neocities/pull/48)
|
||||||
|
- chore(deps): bump actions/setup-node from 2.3.2 to 2.4.0 [`#47`](https://github.com/bcomnes/deploy-to-neocities/pull/47)
|
||||||
|
- chore(deps): bump actions/setup-node from 2.3.1 to 2.3.2 [`#46`](https://github.com/bcomnes/deploy-to-neocities/pull/46)
|
||||||
|
- chore(deps): bump actions/setup-node from 2.3.0 to 2.3.1 [`#45`](https://github.com/bcomnes/deploy-to-neocities/pull/45)
|
||||||
|
- chore(deps): bump actions/setup-node from 2.2.0 to 2.3.0 [`#44`](https://github.com/bcomnes/deploy-to-neocities/pull/44)
|
||||||
|
- chore(deps): bump fastify/github-action-merge-dependabot [`#43`](https://github.com/bcomnes/deploy-to-neocities/pull/43)
|
||||||
|
- chore(deps): bump actions/setup-node from 2.1.5 to 2.2.0 [`#42`](https://github.com/bcomnes/deploy-to-neocities/pull/42)
|
||||||
|
- chore(deps): bump @actions/core from 1.3.0 to 1.4.0 [`#41`](https://github.com/bcomnes/deploy-to-neocities/pull/41)
|
||||||
|
- chore(deps): bump fastify/github-action-merge-dependabot [`#40`](https://github.com/bcomnes/deploy-to-neocities/pull/40)
|
||||||
|
- chore(deps): bump fastify/github-action-merge-dependabot [`#39`](https://github.com/bcomnes/deploy-to-neocities/pull/39)
|
||||||
|
- chore(deps): bump @actions/core from 1.2.7 to 1.3.0 [`#38`](https://github.com/bcomnes/deploy-to-neocities/pull/38)
|
||||||
|
- chore(deps-dev): bump gh-release from 5.0.2 to 6.0.0 [`#37`](https://github.com/bcomnes/deploy-to-neocities/pull/37)
|
||||||
|
- chore(deps): bump actions/checkout from 2 to 2.3.4 [`#36`](https://github.com/bcomnes/deploy-to-neocities/pull/36)
|
||||||
|
- chore(deps): bump @actions/core from 1.2.6 to 1.2.7 [`#35`](https://github.com/bcomnes/deploy-to-neocities/pull/35)
|
||||||
|
- chore(deps): bump fastify/github-action-merge-dependabot from v1.2.1 to v2.0.0 [`#34`](https://github.com/bcomnes/deploy-to-neocities/pull/34)
|
||||||
|
- chore(deps): bump fastify/github-action-merge-dependabot [`#33`](https://github.com/bcomnes/deploy-to-neocities/pull/33)
|
||||||
|
- chore(deps): bump fastify/github-action-merge-dependabot from v1.1.1 to v1.2.0 [`#32`](https://github.com/bcomnes/deploy-to-neocities/pull/32)
|
||||||
|
- chore(deps): bump actions/setup-node from v2.1.4 to v2.1.5 [`#31`](https://github.com/bcomnes/deploy-to-neocities/pull/31)
|
||||||
|
|
||||||
|
### Commits
|
||||||
|
|
||||||
|
- Update README.md [`c20b64e`](https://github.com/bcomnes/deploy-to-neocities/commit/c20b64ec3ad139d92da5bd9d956cd86bd3786850)
|
||||||
|
|
||||||
|
## [v1.1.0](https://github.com/bcomnes/deploy-to-neocities/compare/v1.0.17...v1.1.0) - 2021-01-17
|
||||||
|
|
||||||
|
### Commits
|
||||||
|
|
||||||
|
- Add a protected_files input that accepts a minimatch glob [`cadbbff`](https://github.com/bcomnes/deploy-to-neocities/commit/cadbbff70037001f49c979fa34e897efac8ab455)
|
||||||
|
- fix site static glob [`7c7e908`](https://github.com/bcomnes/deploy-to-neocities/commit/7c7e9080c03ebfe9f1517c579e38245260ce4f0b)
|
||||||
|
- clean up [`b2793d2`](https://github.com/bcomnes/deploy-to-neocities/commit/b2793d2827cbd21b3b2f38ac7a2da6ffafb7fcc8)
|
||||||
|
|
||||||
|
## [v1.0.17](https://github.com/bcomnes/deploy-to-neocities/compare/v1.0.16...v1.0.17) - 2021-01-17
|
||||||
|
|
||||||
### Merged
|
### Merged
|
||||||
|
|
||||||
|
|||||||
18
README.md
18
README.md
@@ -69,6 +69,7 @@ You most likely only want to run this on the `master` branch so that only change
|
|||||||
- `api_token` (**REQUIRED**): The API token for your [Neocities][nc] website to deploy to.
|
- `api_token` (**REQUIRED**): The API token for your [Neocities][nc] website to deploy to.
|
||||||
- `dist_dir`: The directory to deploy to [Neocities][nc]. Default: `public`.
|
- `dist_dir`: The directory to deploy to [Neocities][nc]. Default: `public`.
|
||||||
- `cleanup`: Boolean string (`true` or `false`). If `true`, `deploy-to-neocities` will destructively delete files found on [Neocities][nc] not found in your `dist_dir`. Default: `false`.
|
- `cleanup`: Boolean string (`true` or `false`). If `true`, `deploy-to-neocities` will destructively delete files found on [Neocities][nc] not found in your `dist_dir`. Default: `false`.
|
||||||
|
- `protected_files`: An optional glob string used to mark files as protected. Protected files are never cleaned up. Test this option out with `cleanup` set to false before relying on it. Protected files are printed when `cleanup` is set to true or false. Glob strings are processed by [minimatch](https://github.com/isaacs/minimatch) against remote neocities file paths. Protected files can still be updated.
|
||||||
|
|
||||||
### Outputs
|
### Outputs
|
||||||
|
|
||||||
@@ -108,12 +109,29 @@ None.
|
|||||||
|
|
||||||
## Sites using deploy-to-neocities
|
## Sites using deploy-to-neocities
|
||||||
|
|
||||||
|
(Some may be NSFW)
|
||||||
|
|
||||||
- https://github.com/bcomnes/bret.io ([bret.io](https://bret.io))
|
- https://github.com/bcomnes/bret.io ([bret.io](https://bret.io))
|
||||||
- https://github.com/ecomnes/elenacomnes.com ([elenacomnes.comnes](https://elenacomnes.com))
|
- https://github.com/ecomnes/elenacomnes.com ([elenacomnes.comnes](https://elenacomnes.com))
|
||||||
- https://github.com/gumcast/gumcast-client ([gumcast.com](https://gumcast.com))
|
- https://github.com/gumcast/gumcast-client ([gumcast.com](https://gumcast.com))
|
||||||
- https://github.com/bcomnes/deploy-to-neocities/blob/master/.github/workflows/neocities.yml ([deploy-to-neocities.neocities.org](https://deploy-to-neocities.neocities.org))
|
- https://github.com/bcomnes/deploy-to-neocities/blob/master/.github/workflows/neocities.yml ([deploy-to-neocities.neocities.org](https://deploy-to-neocities.neocities.org))
|
||||||
- [Zambonifofex/stories](https://github.com/Zambonifofex/stories) ([zamstories.neocities.org](https://zamstories.neocities.org))
|
- [Zambonifofex/stories](https://github.com/Zambonifofex/stories) ([zamstories.neocities.org](https://zamstories.neocities.org))
|
||||||
- [Your Neofeed](https://github.com/victoriadrake/neocities-neofeed), (っ◔◡◔)っ a personal timeline for Neocities and GitHub Pages.
|
- [Your Neofeed](https://github.com/victoriadrake/neocities-neofeed), (っ◔◡◔)っ a personal timeline for Neocities and GitHub Pages.
|
||||||
|
- https://punkedwerewolf.net
|
||||||
|
- https://speakscribe.com
|
||||||
|
- https://geno7.neocities.org
|
||||||
|
- https://github.com/M1ssM0ss/deploy-to-neocities-template
|
||||||
|
- https://nelson.neocities.org
|
||||||
|
- https://flamedfury.com
|
||||||
|
- https://keb.neocities.org
|
||||||
|
- https://missmoss.neocities.org
|
||||||
|
- https://fuckingwebmaster.net
|
||||||
|
- https://rarebit.neocities.org
|
||||||
|
- https://cavacado.neocities.org
|
||||||
|
- https://wanderinginn.neocities.org
|
||||||
|
- https://andri.dk/blog/2021/deploy-static-websites-anywhere
|
||||||
|
- https://github.com/PersonMeetup/frontiercorps ([frontiercorps.neocities.org](https://frontiercorps.neocities.org/))
|
||||||
|
- https://github.com/riastrad/cyberbspace ([cyberb.space](https://cyberb.space))
|
||||||
- ...PR your site when you set it up!
|
- ...PR your site when you set it up!
|
||||||
|
|
||||||
## See also
|
## See also
|
||||||
|
|||||||
@@ -15,6 +15,9 @@ inputs:
|
|||||||
description: Delete orphaned files on neocities that don't exist in distDir
|
description: Delete orphaned files on neocities that don't exist in distDir
|
||||||
default: false
|
default: false
|
||||||
required: true
|
required: true
|
||||||
|
protected_files:
|
||||||
|
description: A glob string that prevents matched files from ever being deleted.
|
||||||
|
required: false
|
||||||
runs:
|
runs:
|
||||||
using: 'node12'
|
using: 'node12'
|
||||||
main: 'dist/index.js'
|
main: 'dist/index.js'
|
||||||
|
|||||||
19920
dist/index.js
vendored
19920
dist/index.js
vendored
File diff suppressed because one or more lines are too long
2
dist/index.js.map
vendored
2
dist/index.js.map
vendored
File diff suppressed because one or more lines are too long
3913
dist/sourcemap-register.js
vendored
3913
dist/sourcemap-register.js
vendored
File diff suppressed because one or more lines are too long
14
index.js
14
index.js
@@ -5,6 +5,7 @@ const path = require('path')
|
|||||||
const ms = require('ms')
|
const ms = require('ms')
|
||||||
const assert = require('webassert').default
|
const assert = require('webassert').default
|
||||||
const fsp = require('fs').promises
|
const fsp = require('fs').promises
|
||||||
|
const minimatch = require('minimatch')
|
||||||
|
|
||||||
let cleanup
|
let cleanup
|
||||||
|
|
||||||
@@ -12,6 +13,7 @@ async function doDeploy () {
|
|||||||
const token = core.getInput('api_token')
|
const token = core.getInput('api_token')
|
||||||
const distDir = path.join(process.cwd(), core.getInput('dist_dir'))
|
const distDir = path.join(process.cwd(), core.getInput('dist_dir'))
|
||||||
cleanup = JSON.parse(core.getInput('cleanup'))
|
cleanup = JSON.parse(core.getInput('cleanup'))
|
||||||
|
const protectedFilesGlob = core.getInput('protected_files')
|
||||||
|
|
||||||
assert(typeof cleanup === 'boolean', 'Cleanup input must be a boolean "true" or "false"')
|
assert(typeof cleanup === 'boolean', 'Cleanup input must be a boolean "true" or "false"')
|
||||||
const stat = await fsp.stat(distDir)
|
const stat = await fsp.stat(distDir)
|
||||||
@@ -19,15 +21,23 @@ async function doDeploy () {
|
|||||||
|
|
||||||
const client = new Neocities(token)
|
const client = new Neocities(token)
|
||||||
|
|
||||||
const stats = await client.deploy(distDir, {
|
const deployOpts = {
|
||||||
cleanup,
|
cleanup,
|
||||||
statsCb: Neocities.statsHandler()
|
statsCb: Neocities.statsHandler()
|
||||||
})
|
}
|
||||||
|
|
||||||
|
if (protectedFilesGlob) deployOpts.protectedFileFilter = minimatch.filter(protectedFilesGlob)
|
||||||
|
|
||||||
|
const stats = await client.deploy(distDir, deployOpts)
|
||||||
|
|
||||||
console.log(`Deployed to Neocities in ${ms(stats.time)}:`)
|
console.log(`Deployed to Neocities in ${ms(stats.time)}:`)
|
||||||
console.log(` Uploaded ${stats.filesToUpload.length} files`)
|
console.log(` Uploaded ${stats.filesToUpload.length} files`)
|
||||||
console.log(` ${cleanup ? 'Deleted' : 'Orphaned'} ${stats.filesToDelete.length} files`)
|
console.log(` ${cleanup ? 'Deleted' : 'Orphaned'} ${stats.filesToDelete.length} files`)
|
||||||
console.log(` Skipped ${stats.filesSkipped.length} files`)
|
console.log(` Skipped ${stats.filesSkipped.length} files`)
|
||||||
|
console.log(` ${stats.protectedFiles.length} protected files:`)
|
||||||
|
if (stats.protectedFiles.length) {
|
||||||
|
console.log(stats.protectedFiles)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
doDeploy().catch(err => {
|
doDeploy().catch(err => {
|
||||||
|
|||||||
15
layout.html
15
layout.html
@@ -1,15 +0,0 @@
|
|||||||
<!DOCTYPE html>
|
|
||||||
<html lang="en">
|
|
||||||
<head>
|
|
||||||
<meta charset="utf-8">
|
|
||||||
<title>Deploy to Neocities</title>
|
|
||||||
<meta name='viewport' content='initial-scale=1, viewport-fit=cover'>
|
|
||||||
<link rel="shortcut icon" href="/favicon.ico">
|
|
||||||
<link rel="stylesheet" href="https://unpkg.com/highlight.js@^9/styles/github.css">
|
|
||||||
<link rel="stylesheet" href="https://unpkg.com/mine.css@^2/dist/style.css">
|
|
||||||
<link rel="stylesheet" href="https://unpkg.com/mine.css@^2/dist/layout.css">
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<main class="markdown-body"></main>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
27
package.json
27
package.json
@@ -1,26 +1,27 @@
|
|||||||
{
|
{
|
||||||
"name": "deploy-to-neocities",
|
"name": "deploy-to-neocities",
|
||||||
"description": "Github Action to deplpoy a folder to Neocities.org",
|
"description": "Github Action to deplpoy a folder to Neocities.org",
|
||||||
"version": "1.0.17",
|
"version": "1.1.2",
|
||||||
"author": "Bret Comnes <bcomnes@gmail.com> (https://bret.io/)",
|
"author": "Bret Comnes <bcomnes@gmail.com> (https://bret.io/)",
|
||||||
"bugs": {
|
"bugs": {
|
||||||
"url": "https://github.com/bcomnes/deploy-to-neocities/issues"
|
"url": "https://github.com/bcomnes/deploy-to-neocities/issues"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@actions/core": "1.2.6",
|
"@actions/core": "1.6.0",
|
||||||
"async-neocities": "2.0.2",
|
"async-neocities": "2.1.1",
|
||||||
|
"minimatch": "^3.0.4",
|
||||||
"ms": "2.1.3",
|
"ms": "2.1.3",
|
||||||
"webassert": "3.0.2"
|
"webassert": "3.0.2"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
"@siteup/cli": "^1.3.3",
|
||||||
|
"@vercel/ncc": "^0.33.1",
|
||||||
"auto-changelog": "^2.0.0",
|
"auto-changelog": "^2.0.0",
|
||||||
"@zeit/ncc": "^0.22.0",
|
"browser-sync": "^2.27.7",
|
||||||
"budo": "^11.6.3",
|
|
||||||
"cpx2": "^3.0.0",
|
|
||||||
"dependency-check": "^4.1.0",
|
"dependency-check": "^4.1.0",
|
||||||
"gh-release": "^5.0.0",
|
"gh-release": "^6.0.0",
|
||||||
"npm-run-all": "^4.1.5",
|
"mkdirp": "^1.0.4",
|
||||||
"sitedown": "^5.0.0",
|
"npm-run-all2": "^5.0.2",
|
||||||
"standard": "^16.0.0"
|
"standard": "^16.0.0"
|
||||||
},
|
},
|
||||||
"homepage": "https://github.com/bcomnes/deploy-to-neocities#readme",
|
"homepage": "https://github.com/bcomnes/deploy-to-neocities#readme",
|
||||||
@@ -35,8 +36,7 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "npm run clean && run-p build:*",
|
"build": "npm run clean && run-p build:*",
|
||||||
"build:action": "rm -rf dist && ncc build index.js -o dist -s",
|
"build:action": "rm -rf dist && ncc build index.js -o dist -s",
|
||||||
"build:md": "sitedown . -b public -l layout.html",
|
"build:site": "siteup --src . --dest public",
|
||||||
"build:static": "cpx './**/*.{png,ico}' public",
|
|
||||||
"clean": "rimraf public && mkdirp public",
|
"clean": "rimraf public && mkdirp public",
|
||||||
"release": "git push --follow-tags && gh-release -y",
|
"release": "git push --follow-tags && gh-release -y",
|
||||||
"start": "npm run watch",
|
"start": "npm run watch",
|
||||||
@@ -47,9 +47,8 @@
|
|||||||
"version:build": "npm run build:action && git add dist",
|
"version:build": "npm run build:action && git add dist",
|
||||||
"version:changelog": "auto-changelog -p --template keepachangelog auto-changelog --breaking-pattern 'BREAKING CHANGE:' && git add CHANGELOG.md",
|
"version:changelog": "auto-changelog -p --template keepachangelog auto-changelog --breaking-pattern 'BREAKING CHANGE:' && git add CHANGELOG.md",
|
||||||
"watch": "npm run clean && run-p watch:*",
|
"watch": "npm run clean && run-p watch:*",
|
||||||
"watch:js": "budo --dir public --live --open",
|
"watch:serve": "browser-sync start --server 'public' --files 'public'",
|
||||||
"watch:md": "npm run build:md -- -w",
|
"watch:site": "npm run build:site -- -w"
|
||||||
"watch:static": "npm run build:static -- --watch"
|
|
||||||
},
|
},
|
||||||
"standard": {
|
"standard": {
|
||||||
"ignore": [
|
"ignore": [
|
||||||
|
|||||||
Reference in New Issue
Block a user