Compare commits

...

92 Commits

Author SHA1 Message Date
Bret Comnes
de4676a924
Merge pull request #243 from bcomnes/dependabot/npm_and_yarn/actions/core-2.0.2
chore(deps): bump @actions/core from 2.0.1 to 2.0.2
2026-01-11 17:58:07 -08:00
dependabot[bot]
79d75215d1
chore(deps): bump @actions/core from 2.0.1 to 2.0.2
Bumps [@actions/core](https://github.com/actions/toolkit/tree/HEAD/packages/core) from 2.0.1 to 2.0.2.
- [Changelog](https://github.com/actions/toolkit/blob/main/packages/core/RELEASES.md)
- [Commits](https://github.com/actions/toolkit/commits/HEAD/packages/core)

---
updated-dependencies:
- dependency-name: "@actions/core"
  dependency-version: 2.0.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-01-09 04:03:16 +00:00
Bret Comnes
d6c0f848a3
Merge pull request #242 from oceanthunder/master
added oceanthunder.dev
2025-12-30 10:09:37 -08:00
Ocean Thunder
11cf75df91
added oceanthunder.dev 2025-12-30 06:17:04 +00:00
Bret Comnes
4d15d7c9f2
Merge pull request #240 from bcomnes/dependabot/npm_and_yarn/actions/core-2.0.1
chore(deps): bump @actions/core from 2.0.0 to 2.0.1
2025-12-21 10:36:52 -08:00
dependabot[bot]
39345a2e6f
chore(deps): bump @actions/core from 2.0.0 to 2.0.1
Bumps [@actions/core](https://github.com/actions/toolkit/tree/HEAD/packages/core) from 2.0.0 to 2.0.1.
- [Changelog](https://github.com/actions/toolkit/blob/main/packages/core/RELEASES.md)
- [Commits](https://github.com/actions/toolkit/commits/@actions/artifact@2.0.1/packages/core)

---
updated-dependencies:
- dependency-name: "@actions/core"
  dependency-version: 2.0.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-12-12 03:01:52 +00:00
Bret Comnes
cb049fd7b8
Merge pull request #239 from bcomnes/dependabot/npm_and_yarn/actions/core-2.0.0 2025-12-10 14:57:45 -08:00
dependabot[bot]
b488452950
chore(deps): bump @actions/core from 1.11.1 to 2.0.0
Bumps [@actions/core](https://github.com/actions/toolkit/tree/HEAD/packages/core) from 1.11.1 to 2.0.0.
- [Changelog](https://github.com/actions/toolkit/blob/main/packages/core/RELEASES.md)
- [Commits](https://github.com/actions/toolkit/commits/HEAD/packages/core)

---
updated-dependencies:
- dependency-name: "@actions/core"
  dependency-version: 2.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-12-10 03:02:10 +00:00
Bret Comnes
1016238f73
Merge pull request #234 from bcomnes/dependabot/npm_and_yarn/minimatch-10.1.1
chore(deps): bump minimatch from 10.0.3 to 10.1.1
2025-12-08 11:54:42 -08:00
Bret Comnes
d52115bd89
Merge pull request #238 from bcomnes/dependabot/npm_and_yarn/esbuild-0.27.1
chore(deps-dev): bump esbuild from 0.25.12 to 0.27.1
2025-12-08 11:54:16 -08:00
dependabot[bot]
93d216da0c
chore(deps-dev): bump esbuild from 0.25.12 to 0.27.1
Bumps [esbuild](https://github.com/evanw/esbuild) from 0.25.12 to 0.27.1.
- [Release notes](https://github.com/evanw/esbuild/releases)
- [Changelog](https://github.com/evanw/esbuild/blob/main/CHANGELOG.md)
- [Commits](https://github.com/evanw/esbuild/compare/v0.25.12...v0.27.1)

---
updated-dependencies:
- dependency-name: esbuild
  dependency-version: 0.27.1
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-12-04 03:01:50 +00:00
dependabot[bot]
0d13efc34c
chore(deps): bump actions/checkout from 5 to 6 (#236)
Bumps [actions/checkout](https://github.com/actions/checkout) from 5 to 6.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v5...v6)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-11-21 03:02:06 +00:00
dependabot[bot]
9d97056ec2
chore(deps): bump minimatch from 10.0.3 to 10.1.1
Bumps [minimatch](https://github.com/isaacs/minimatch) from 10.0.3 to 10.1.1.
- [Changelog](https://github.com/isaacs/minimatch/blob/main/changelog.md)
- [Commits](https://github.com/isaacs/minimatch/compare/v10.0.3...v10.1.1)

---
updated-dependencies:
- dependency-name: minimatch
  dependency-version: 10.1.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-10-29 03:02:30 +00:00
dependabot[bot]
34a387ef17
chore(deps): bump actions/setup-node from 5 to 6 (#233)
Bumps [actions/setup-node](https://github.com/actions/setup-node) from 5 to 6.
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](https://github.com/actions/setup-node/compare/v5...v6)

---
updated-dependencies:
- dependency-name: actions/setup-node
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-10-14 03:02:01 +00:00
Bret Comnes
64cd6c4a38
Merge pull request #232 from bcomnes/dependabot/npm_and_yarn/typescript-66ee01a559 2025-10-03 17:27:54 -07:00
dependabot[bot]
9a0a1dcd38
chore(deps-dev): bump the typescript group with 2 updates
Bumps the typescript group with 2 updates: [@voxpelli/tsconfig](https://github.com/voxpelli/tsconfig) and [typescript](https://github.com/microsoft/TypeScript).


Updates `@voxpelli/tsconfig` from 15.1.2 to 16.1.0
- [Release notes](https://github.com/voxpelli/tsconfig/releases)
- [Changelog](https://github.com/voxpelli/tsconfig/blob/main/CHANGELOG.md)
- [Commits](https://github.com/voxpelli/tsconfig/compare/v15.1.2...v16.1.0)

Updates `typescript` from 5.8.3 to 5.9.3
- [Release notes](https://github.com/microsoft/TypeScript/releases)
- [Changelog](https://github.com/microsoft/TypeScript/blob/main/azure-pipelines.release-publish.yml)
- [Commits](https://github.com/microsoft/TypeScript/compare/v5.8.3...v5.9.3)

---
updated-dependencies:
- dependency-name: "@voxpelli/tsconfig"
  dependency-version: 16.1.0
  dependency-type: direct:development
  update-type: version-update:semver-major
  dependency-group: typescript
- dependency-name: typescript
  dependency-version: 5.9.3
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: typescript
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-10-04 00:18:56 +00:00
Bret Comnes
a98f3aead4
Add Dependabot group for TypeScript dependencies 2025-10-03 17:17:24 -07:00
dependabot[bot]
039f475bcb
chore(deps): bump actions/setup-node from 4 to 5 (#229)
Bumps [actions/setup-node](https://github.com/actions/setup-node) from 4 to 5.
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](https://github.com/actions/setup-node/compare/v4...v5)

---
updated-dependencies:
- dependency-name: actions/setup-node
  dependency-version: '5'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-09-05 03:02:07 +00:00
dependabot[bot]
b66cd2f439
chore(deps): bump actions/checkout from 4 to 5 (#228)
Bumps [actions/checkout](https://github.com/actions/checkout) from 4 to 5.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v4...v5)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '5'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-08-12 10:53:53 +00:00
bcomnes
08817e531c 3.0.4 2025-06-13 16:58:08 +00:00
Bret Comnes
692b031118
Merge pull request #225 from bcomnes/dependabot/npm_and_yarn/async-neocities-4.1.2 2025-06-13 09:57:12 -07:00
dependabot[bot]
a1ae452c40
chore(deps): bump async-neocities from 4.1.1 to 4.1.2
Bumps [async-neocities](https://github.com/bcomnes/async-neocities) from 4.1.1 to 4.1.2.
- [Release notes](https://github.com/bcomnes/async-neocities/releases)
- [Changelog](https://github.com/bcomnes/async-neocities/blob/master/CHANGELOG.md)
- [Commits](https://github.com/bcomnes/async-neocities/compare/v4.1.1...v4.1.2)

---
updated-dependencies:
- dependency-name: async-neocities
  dependency-version: 4.1.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-06-13 16:54:01 +00:00
Bret Comnes
c072c98ce4
Merge pull request #224 from bcomnes/dependabot/npm_and_yarn/minimatch-10.0.3
chore(deps): bump minimatch from 10.0.1 to 10.0.3
2025-06-13 09:41:31 -07:00
dependabot[bot]
308934ebd2
chore(deps): bump minimatch from 10.0.1 to 10.0.3
Bumps [minimatch](https://github.com/isaacs/minimatch) from 10.0.1 to 10.0.3.
- [Changelog](https://github.com/isaacs/minimatch/blob/main/changelog.md)
- [Commits](https://github.com/isaacs/minimatch/compare/v10.0.1...v10.0.3)

---
updated-dependencies:
- dependency-name: minimatch
  dependency-version: 10.0.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-06-13 03:24:54 +00:00
Bret Comnes
3b9c0ff6a8
3.0.3 2025-06-01 21:14:38 -07:00
Bret Comnes
51ec937eb8
Update async-neocities 2025-06-01 21:14:33 -07:00
Bret Comnes
6ad0ab0d14
Merge pull request #222 from MymeType/patch-1
Add my own website in README.md
2025-05-27 13:54:03 -07:00
MymeType
f02d52685d
Add my own website in README.md 2025-05-27 21:13:02 +02:00
Bret Comnes
7c11b664c6
Merge pull request #221 from bcomnes/dependabot/npm_and_yarn/npm-run-all2-8.0.1 2025-05-05 17:02:11 -07:00
dependabot[bot]
20286ea2e1
chore(deps-dev): bump npm-run-all2 from 7.0.2 to 8.0.1
Bumps [npm-run-all2](https://github.com/bcomnes/npm-run-all2) from 7.0.2 to 8.0.1.
- [Release notes](https://github.com/bcomnes/npm-run-all2/releases)
- [Changelog](https://github.com/bcomnes/npm-run-all2/blob/master/CHANGELOG.md)
- [Commits](https://github.com/bcomnes/npm-run-all2/compare/v7.0.2...v8.0.1)

---
updated-dependencies:
- dependency-name: npm-run-all2
  dependency-version: 8.0.1
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-05-05 03:37:59 +00:00
Bret Comnes
2eafa119db
Merge pull request #217 from bcomnes/dependabot/npm_and_yarn/typescript-5.8.2
chore(deps-dev): bump typescript from 5.7.3 to 5.8.2
2025-03-06 10:11:44 -08:00
dependabot[bot]
136098ad51
chore(deps-dev): bump typescript from 5.7.3 to 5.8.2
Bumps [typescript](https://github.com/microsoft/TypeScript) from 5.7.3 to 5.8.2.
- [Release notes](https://github.com/microsoft/TypeScript/releases)
- [Changelog](https://github.com/microsoft/TypeScript/blob/main/azure-pipelines.release.yml)
- [Commits](https://github.com/microsoft/TypeScript/compare/v5.7.3...v5.8.2)

---
updated-dependencies:
- dependency-name: typescript
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-03-03 03:10:39 +00:00
Bret Comnes
5761b44f4d
More example comments 2025-02-13 09:50:17 -08:00
Bret Comnes
e062c69fd8
Add a note about settings locations 2025-02-13 09:48:26 -08:00
Bret Comnes
f0b7afe72c
Merge pull request #213 from bcomnes/dependabot/npm_and_yarn/esbuild-0.25.0
chore(deps-dev): bump esbuild from 0.24.2 to 0.25.0
2025-02-10 09:58:09 -08:00
dependabot[bot]
6440dab52a
chore(deps-dev): bump esbuild from 0.24.2 to 0.25.0
Bumps [esbuild](https://github.com/evanw/esbuild) from 0.24.2 to 0.25.0.
- [Release notes](https://github.com/evanw/esbuild/releases)
- [Changelog](https://github.com/evanw/esbuild/blob/main/CHANGELOG-2024.md)
- [Commits](https://github.com/evanw/esbuild/compare/v0.24.2...v0.25.0)

---
updated-dependencies:
- dependency-name: esbuild
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-02-10 03:49:40 +00:00
Bret Comnes
70b264bcb3
Merge pull request #211 from bcomnes/dependabot/npm_and_yarn/neostandard-0.12.0
chore(deps-dev): bump neostandard from 0.11.9 to 0.12.0
2024-12-10 10:34:17 -08:00
dependabot[bot]
75401fb61d
chore(deps-dev): bump neostandard from 0.11.9 to 0.12.0
Bumps [neostandard](https://github.com/neostandard/neostandard) from 0.11.9 to 0.12.0.
- [Release notes](https://github.com/neostandard/neostandard/releases)
- [Changelog](https://github.com/neostandard/neostandard/blob/main/CHANGELOG.md)
- [Commits](https://github.com/neostandard/neostandard/compare/v0.11.9...v0.12.0)

---
updated-dependencies:
- dependency-name: neostandard
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-12-10 03:11:10 +00:00
bcomnes
60adbf96af 3.0.2 2024-12-09 18:00:43 +00:00
Bret Comnes
68d0158045
Merge pull request #210 from bcomnes/dependabot/npm_and_yarn/async-neocities-4.1.0
chore(deps): bump async-neocities from 4.0.4 to 4.1.0
2024-12-09 09:59:38 -08:00
dependabot[bot]
105af8d6d9
chore(deps): bump async-neocities from 4.0.4 to 4.1.0
Bumps [async-neocities](https://github.com/bcomnes/async-neocities) from 4.0.4 to 4.1.0.
- [Release notes](https://github.com/bcomnes/async-neocities/releases)
- [Changelog](https://github.com/bcomnes/async-neocities/blob/master/CHANGELOG.md)
- [Commits](https://github.com/bcomnes/async-neocities/compare/v4.0.4...v4.1.0)

---
updated-dependencies:
- dependency-name: async-neocities
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-12-09 03:53:22 +00:00
bcomnes
0836ded28a 3.0.1 2024-11-28 22:37:40 +00:00
Bret Comnes
e1376e6631
Merge pull request #209 from bcomnes/dependabot/npm_and_yarn/async-neocities-4.0.4
chore(deps): bump async-neocities from 4.0.3 to 4.0.4
2024-11-28 14:36:41 -08:00
dependabot[bot]
2d1e970973
chore(deps): bump async-neocities from 4.0.3 to 4.0.4
Bumps [async-neocities](https://github.com/bcomnes/async-neocities) from 4.0.3 to 4.0.4.
- [Release notes](https://github.com/bcomnes/async-neocities/releases)
- [Changelog](https://github.com/bcomnes/async-neocities/blob/master/CHANGELOG.md)
- [Commits](https://github.com/bcomnes/async-neocities/compare/v4.0.3...v4.0.4)

---
updated-dependencies:
- dependency-name: async-neocities
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-11-28 22:35:06 +00:00
Bret Comnes
4c76eb6aac
Merge pull request #208 from telnettrauma/master
fixed a typo in README.md
2024-11-28 14:33:07 -08:00
Bret Comnes
e6592bbaff
Merge pull request #207 from bcomnes/dependabot/npm_and_yarn/typescript-5.7.2
chore(deps-dev): bump typescript from 5.6.3 to 5.7.2
2024-11-28 14:28:18 -08:00
telnettrauma
180c4df293
fixed a typo in README.md 2024-11-26 09:52:51 -05:00
dependabot[bot]
8f5b34d768
chore(deps-dev): bump typescript from 5.6.3 to 5.7.2
Bumps [typescript](https://github.com/microsoft/TypeScript) from 5.6.3 to 5.7.2.
- [Release notes](https://github.com/microsoft/TypeScript/releases)
- [Changelog](https://github.com/microsoft/TypeScript/blob/main/azure-pipelines.release.yml)
- [Commits](https://github.com/microsoft/TypeScript/compare/v5.6.3...v5.7.2)

---
updated-dependencies:
- dependency-name: typescript
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-11-26 03:14:35 +00:00
Bret Comnes
15eb88d483
Update README.md 2024-11-20 16:21:55 -08:00
Bret Comnes
c320837978
Merge pull request #206 from jefbecker/master
Add my website https://jefbecker.com/ to the list.
2024-11-20 10:37:45 -08:00
jefbecker
0e06b4e2e9
Add my website https://jefbecker.com/ to the list. 2024-11-20 11:30:56 -03:00
Bret Comnes
c636648753
3.0.0 2024-11-19 17:38:01 -08:00
Bret Comnes
7b14798c89
Update to the latest async-neocities 4.0
BREAKING CHANGE: api_token action input is renamed to api_key, please update this

BREAKING CHANGE: added a required neocities_supporter action input to toggle unsupported file filtering

BREAKING CHANGE: addad a preview_before_deploy action input to toggle informational deploy plans prior to deploys

BREAKING CHANGE: completely rewrote the underlying library to provide better error handling and reporting

BREAKING CHANGE: Remove a bunch of real time stats and progress meters. Deploys were finishing in seconds and these were very complicated to maintain.
2024-11-19 17:35:09 -08:00
Bret Comnes
f9a550fd47
Merge pull request #205 from bcomnes/dependabot/npm_and_yarn/npm-run-all2-7.0.1
chore(deps-dev): bump npm-run-all2 from 6.2.6 to 7.0.1
2024-10-24 11:10:42 -07:00
dependabot[bot]
7fc09bc1c3
chore(deps-dev): bump npm-run-all2 from 6.2.6 to 7.0.1
Bumps [npm-run-all2](https://github.com/bcomnes/npm-run-all2) from 6.2.6 to 7.0.1.
- [Release notes](https://github.com/bcomnes/npm-run-all2/releases)
- [Changelog](https://github.com/bcomnes/npm-run-all2/blob/master/CHANGELOG.md)
- [Commits](https://github.com/bcomnes/npm-run-all2/compare/v6.2.6...v7.0.1)

---
updated-dependencies:
- dependency-name: npm-run-all2
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-10-24 03:31:33 +00:00
bcomnes
3220139f1f 2.0.4 2024-10-07 16:46:31 +00:00
Bret Comnes
a662d83b0e
Merge pull request #202 from bcomnes/dependabot/npm_and_yarn/top-bun-10.0.0
chore(deps-dev): bump top-bun from 9.1.1 to 10.0.0
2024-10-07 09:44:57 -07:00
Bret Comnes
c2bc8f6e5d
Merge pull request #203 from bcomnes/dependabot/npm_and_yarn/actions/core-1.11.1
chore(deps): bump @actions/core from 1.11.0 to 1.11.1
2024-10-07 09:44:48 -07:00
dependabot[bot]
54879c3402
chore(deps): bump @actions/core from 1.11.0 to 1.11.1
Bumps [@actions/core](https://github.com/actions/toolkit/tree/HEAD/packages/core) from 1.11.0 to 1.11.1.
- [Changelog](https://github.com/actions/toolkit/blob/main/packages/core/RELEASES.md)
- [Commits](https://github.com/actions/toolkit/commits/HEAD/packages/core)

---
updated-dependencies:
- dependency-name: "@actions/core"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-10-07 03:25:38 +00:00
dependabot[bot]
b0b5537ac7
chore(deps-dev): bump top-bun from 9.1.1 to 10.0.0
Bumps [top-bun](https://github.com/bcomnes/top-bun) from 9.1.1 to 10.0.0.
- [Release notes](https://github.com/bcomnes/top-bun/releases)
- [Changelog](https://github.com/bcomnes/top-bun/blob/master/CHANGELOG.md)
- [Commits](https://github.com/bcomnes/top-bun/compare/v9.1.1...v10.0.0)

---
updated-dependencies:
- dependency-name: top-bun
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-10-07 03:25:05 +00:00
bcomnes
bd472e5897 2.0.3 2024-10-03 20:55:10 +00:00
Bret Comnes
201bd8aae3
Merge pull request #201 from bcomnes/dependabot/npm_and_yarn/actions/core-1.11.0
chore(deps): bump @actions/core from 1.10.1 to 1.11.0
2024-10-03 13:54:07 -07:00
dependabot[bot]
7c1e44b6fa
chore(deps): bump @actions/core from 1.10.1 to 1.11.0
Bumps [@actions/core](https://github.com/actions/toolkit/tree/HEAD/packages/core) from 1.10.1 to 1.11.0.
- [Changelog](https://github.com/actions/toolkit/blob/main/packages/core/RELEASES.md)
- [Commits](https://github.com/actions/toolkit/commits/HEAD/packages/core)

---
updated-dependencies:
- dependency-name: "@actions/core"
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-10-03 03:02:18 +00:00
Bret Comnes
d84f74a07d
Merge pull request #200 from punkfairie/patch-1
Add my site to the readme
2024-09-30 10:14:12 -07:00
Marley Rae
bbd84ca5f4
Add my site to the readme 2024-09-28 19:12:10 -07:00
Bret Comnes
f2bd635f42
Merge pull request #199 from bcomnes/dependabot/npm_and_yarn/esbuild-0.24.0 2024-09-24 17:15:16 -07:00
dependabot[bot]
90e8a074cd
chore(deps-dev): bump esbuild from 0.23.1 to 0.24.0
Bumps [esbuild](https://github.com/evanw/esbuild) from 0.23.1 to 0.24.0.
- [Release notes](https://github.com/evanw/esbuild/releases)
- [Changelog](https://github.com/evanw/esbuild/blob/main/CHANGELOG.md)
- [Commits](https://github.com/evanw/esbuild/compare/v0.23.1...v0.24.0)

---
updated-dependencies:
- dependency-name: esbuild
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-09-23 03:17:33 +00:00
Bret Comnes
b13a31c0ad
Merge pull request #197 from bcomnes/dependabot/npm_and_yarn/top-bun-9.0.1
chore(deps-dev): bump top-bun from 8.0.2 to 9.0.1
2024-09-17 10:01:25 -07:00
dependabot[bot]
524519f102
chore(deps-dev): bump top-bun from 8.0.2 to 9.0.1
Bumps [top-bun](https://github.com/bcomnes/top-bun) from 8.0.2 to 9.0.1.
- [Release notes](https://github.com/bcomnes/top-bun/releases)
- [Changelog](https://github.com/bcomnes/top-bun/blob/master/CHANGELOG.md)
- [Commits](https://github.com/bcomnes/top-bun/compare/v8.0.2...v9.0.1)

---
updated-dependencies:
- dependency-name: top-bun
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-09-16 03:22:24 +00:00
Bret Comnes
05b2d8841c
Merge pull request #193 from bcomnes/dependabot/npm_and_yarn/top-bun-8.0.0
chore(deps-dev): bump top-bun from 7.3.4 to 8.0.0
2024-08-07 09:57:15 -07:00
dependabot[bot]
78d977e40f
chore(deps-dev): bump top-bun from 7.3.4 to 8.0.0
Bumps [top-bun](https://github.com/bcomnes/top-bun) from 7.3.4 to 8.0.0.
- [Release notes](https://github.com/bcomnes/top-bun/releases)
- [Changelog](https://github.com/bcomnes/top-bun/blob/master/CHANGELOG.md)
- [Commits](https://github.com/bcomnes/top-bun/compare/v7.3.4...v8.0.0)

---
updated-dependencies:
- dependency-name: top-bun
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-08-07 03:03:59 +00:00
Bret Comnes
3a22077d9a
Merge pull request #192 from bcomnes/dependabot/npm_and_yarn/minimatch-10.0.1
chore(deps): bump minimatch from 9.0.5 to 10.0.1
2024-07-10 09:42:52 -05:00
dependabot[bot]
225c06261c
chore(deps): bump minimatch from 9.0.5 to 10.0.1
Bumps [minimatch](https://github.com/isaacs/minimatch) from 9.0.5 to 10.0.1.
- [Changelog](https://github.com/isaacs/minimatch/blob/main/changelog.md)
- [Commits](https://github.com/isaacs/minimatch/compare/v9.0.5...v10.0.1)

---
updated-dependencies:
- dependency-name: minimatch
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-07-09 03:42:43 +00:00
Bret Comnes
8999c71022
Merge pull request #191 from bcomnes/dependabot/npm_and_yarn/esbuild-0.23.0 2024-07-03 10:46:31 -07:00
dependabot[bot]
2c2bdb4833
chore(deps-dev): bump esbuild from 0.22.0 to 0.23.0
Bumps [esbuild](https://github.com/evanw/esbuild) from 0.22.0 to 0.23.0.
- [Release notes](https://github.com/evanw/esbuild/releases)
- [Changelog](https://github.com/evanw/esbuild/blob/main/CHANGELOG.md)
- [Commits](https://github.com/evanw/esbuild/compare/v0.22.0...v0.23.0)

---
updated-dependencies:
- dependency-name: esbuild
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-07-03 03:19:38 +00:00
Bret Comnes
22dddf1668
Merge pull request #190 from bcomnes/dependabot/npm_and_yarn/esbuild-0.22.0 2024-07-01 20:28:20 -07:00
dependabot[bot]
0e7875ee24
chore(deps-dev): bump esbuild from 0.21.5 to 0.22.0
Bumps [esbuild](https://github.com/evanw/esbuild) from 0.21.5 to 0.22.0.
- [Release notes](https://github.com/evanw/esbuild/releases)
- [Changelog](https://github.com/evanw/esbuild/blob/main/CHANGELOG.md)
- [Commits](https://github.com/evanw/esbuild/compare/v0.21.5...v0.22.0)

---
updated-dependencies:
- dependency-name: esbuild
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-07-01 03:05:25 +00:00
Bret Comnes
9edd9b15c5
Merge pull request #189 from bcomnes/dependabot/npm_and_yarn/minimatch-9.0.5 2024-06-26 10:13:38 -07:00
dependabot[bot]
de00ebfb18
chore(deps): bump minimatch from 9.0.4 to 9.0.5
Bumps [minimatch](https://github.com/isaacs/minimatch) from 9.0.4 to 9.0.5.
- [Changelog](https://github.com/isaacs/minimatch/blob/main/changelog.md)
- [Commits](https://github.com/isaacs/minimatch/compare/v9.0.4...v9.0.5)

---
updated-dependencies:
- dependency-name: minimatch
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-06-26 03:08:49 +00:00
Bret Comnes
442fdb16c6
Merge pull request #188 from helenclx/master
Remove my hobby website from the website list
2024-06-03 08:50:20 -07:00
Helen Chong
66b26b18d1 Remove my hobby website from the website list 2024-06-03 10:47:23 +08:00
Bret Comnes
bcd01efa4b
Merge pull request #187 from helenclx/master 2024-05-25 13:22:28 -07:00
Helen Chong
b5c3f6f80e Add leilukin.neocities.org to the list of sites 2024-05-25 12:20:30 +08:00
Bret Comnes
6595f1c246
Merge pull request #185 from Len42/add-lenp.net 2024-05-21 13:44:48 -07:00
Bret Comnes
ae08849335
Update README.md 2024-05-21 13:42:42 -07:00
Len Popp len.popp@gmail.com
3eacba89fd add site lenp.net (https://lenp.neocities.org/) 2024-05-19 13:49:08 -04:00
Bret Comnes
5729d50652
Merge pull request #184 from bcomnes/dependabot/npm_and_yarn/esbuild-0.21.0
chore(deps-dev): bump esbuild from 0.20.2 to 0.21.0
2024-05-07 19:40:38 -07:00
dependabot[bot]
b089e0d0bc
chore(deps-dev): bump esbuild from 0.20.2 to 0.21.0
Bumps [esbuild](https://github.com/evanw/esbuild) from 0.20.2 to 0.21.0.
- [Release notes](https://github.com/evanw/esbuild/releases)
- [Changelog](https://github.com/evanw/esbuild/blob/main/CHANGELOG.md)
- [Commits](https://github.com/evanw/esbuild/compare/v0.20.2...v0.21.0)

---
updated-dependencies:
- dependency-name: esbuild
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-07 03:53:11 +00:00
Bret Comnes
e3fac0f3de
2.0.2 2024-04-04 11:44:48 -07:00
Bret Comnes
1fcd576de9
Clarify default branch situation in README 2024-04-04 11:41:01 -07:00
Bret Comnes
f4b0c050cf
2.0.1 2024-04-04 11:38:24 -07:00
Bret Comnes
5a66259a88
Update docs 2024-04-04 11:37:59 -07:00
17 changed files with 35323 additions and 11950 deletions

View File

@ -10,9 +10,13 @@ updates:
# Check the npm registry for updates every day (weekdays)
schedule:
interval: "daily"
groups:
typescript:
patterns:
- "typescript"
- "@voxpelli/tsconfig"
# Enable updates to github actions
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"

View File

@ -19,11 +19,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
# Set up any tools and build steps here
# This example uses a Node.js toolchain to build a site
- name: Use Node.js
uses: actions/setup-node@v4
uses: actions/setup-node@v6
with:
node-version: ${{ env.node_version }}
- run: npm i
@ -32,7 +32,9 @@ jobs:
- name: Deploy to neocities
uses: bcomnes/deploy-to-neocities@master # dont use master in production
with:
api_token: ${{ secrets.NEOCITIES_API_TOKEN }}
api_key: ${{ secrets.NEOCITIES_API_TOKEN }}
cleanup: true
dist_dir: public
protected_files: 'dropbox/*'
neocities_supporter: true # set this to true if you have a supporter account and want to bypass unsuported files filter.
preview_before_deploy: true

View File

@ -19,11 +19,11 @@ jobs:
version_and_release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
with:
# fetch full history so things like auto-changelog work properly
fetch-depth: 0
- uses: actions/setup-node@v4
- uses: actions/setup-node@v6
with:
node-version: ${{ env.node_version }}
# setting a registry enables the NODE_AUTH_TOKEN env variable where we can set an npm token. REQUIRED

View File

@ -15,9 +15,9 @@ jobs:
node: [lts/*]
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v4
uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node }}
- run: npm i

1
.gitignore vendored
View File

@ -5,3 +5,4 @@ public
node_modules
tmp_modules
package-lock.json
coverage

View File

@ -7,7 +7,99 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
## [v2.0.0](https://github.com/bcomnes/deploy-to-neocities/compare/v1.1.21...v2.0.0)
## [v3.0.4](https://github.com/bcomnes/deploy-to-neocities/compare/v3.0.3...v3.0.4)
### Merged
- chore(deps): bump minimatch from 10.0.1 to 10.0.3 [`#224`](https://github.com/bcomnes/deploy-to-neocities/pull/224)
### Commits
- Merge pull request #225 from bcomnes/dependabot/npm_and_yarn/async-neocities-4.1.2 [`692b031`](https://github.com/bcomnes/deploy-to-neocities/commit/692b031118b324f3c28f2204ff18882edb9c53af)
- chore(deps): bump async-neocities from 4.1.1 to 4.1.2 [`a1ae452`](https://github.com/bcomnes/deploy-to-neocities/commit/a1ae452c40f056b6cead68ed5d914245860ab45e)
## [v3.0.3](https://github.com/bcomnes/deploy-to-neocities/compare/v3.0.2...v3.0.3) - 2025-06-01
### Merged
- Add my own website in README.md [`#222`](https://github.com/bcomnes/deploy-to-neocities/pull/222)
- chore(deps-dev): bump typescript from 5.7.3 to 5.8.2 [`#217`](https://github.com/bcomnes/deploy-to-neocities/pull/217)
- chore(deps-dev): bump esbuild from 0.24.2 to 0.25.0 [`#213`](https://github.com/bcomnes/deploy-to-neocities/pull/213)
- chore(deps-dev): bump neostandard from 0.11.9 to 0.12.0 [`#211`](https://github.com/bcomnes/deploy-to-neocities/pull/211)
### Commits
- Update async-neocities [`51ec937`](https://github.com/bcomnes/deploy-to-neocities/commit/51ec937eb84fa6beae055593f8e286e7d49d1d1e)
- Merge pull request #221 from bcomnes/dependabot/npm_and_yarn/npm-run-all2-8.0.1 [`7c11b66`](https://github.com/bcomnes/deploy-to-neocities/commit/7c11b664c6b9ed5b7d72def8047f539b2f2205a9)
- More example comments [`5761b44`](https://github.com/bcomnes/deploy-to-neocities/commit/5761b44f4df0408697ca3c9438cf8f7ae8df9628)
## [v3.0.2](https://github.com/bcomnes/deploy-to-neocities/compare/v3.0.1...v3.0.2) - 2024-12-09
### Merged
- chore(deps): bump async-neocities from 4.0.4 to 4.1.0 [`#210`](https://github.com/bcomnes/deploy-to-neocities/pull/210)
## [v3.0.1](https://github.com/bcomnes/deploy-to-neocities/compare/v3.0.0...v3.0.1) - 2024-11-28
### Merged
- chore(deps): bump async-neocities from 4.0.3 to 4.0.4 [`#209`](https://github.com/bcomnes/deploy-to-neocities/pull/209)
- fixed a typo in README.md [`#208`](https://github.com/bcomnes/deploy-to-neocities/pull/208)
- chore(deps-dev): bump typescript from 5.6.3 to 5.7.2 [`#207`](https://github.com/bcomnes/deploy-to-neocities/pull/207)
- Add my website https://jefbecker.com/ to the list. [`#206`](https://github.com/bcomnes/deploy-to-neocities/pull/206)
### Commits
- Update README.md [`15eb88d`](https://github.com/bcomnes/deploy-to-neocities/commit/15eb88d4831e8b3170195c1e2b468e8ab3a9703d)
## [v3.0.0](https://github.com/bcomnes/deploy-to-neocities/compare/v2.0.4...v3.0.0) - 2024-11-19
### Merged
- chore(deps-dev): bump npm-run-all2 from 6.2.6 to 7.0.1 [`#205`](https://github.com/bcomnes/deploy-to-neocities/pull/205)
### Commits
- **Breaking change:** Update to the latest async-neocities 4.0 [`7b14798`](https://github.com/bcomnes/deploy-to-neocities/commit/7b14798c892f2494466bc72d5402c85801f75341)
## [v2.0.4](https://github.com/bcomnes/deploy-to-neocities/compare/v2.0.3...v2.0.4) - 2024-10-07
### Merged
- chore(deps-dev): bump top-bun from 9.1.1 to 10.0.0 [`#202`](https://github.com/bcomnes/deploy-to-neocities/pull/202)
- chore(deps): bump @actions/core from 1.11.0 to 1.11.1 [`#203`](https://github.com/bcomnes/deploy-to-neocities/pull/203)
## [v2.0.3](https://github.com/bcomnes/deploy-to-neocities/compare/v2.0.2...v2.0.3) - 2024-10-03
### Merged
- chore(deps): bump @actions/core from 1.10.1 to 1.11.0 [`#201`](https://github.com/bcomnes/deploy-to-neocities/pull/201)
- Add my site to the readme [`#200`](https://github.com/bcomnes/deploy-to-neocities/pull/200)
- chore(deps-dev): bump top-bun from 8.0.2 to 9.0.1 [`#197`](https://github.com/bcomnes/deploy-to-neocities/pull/197)
- chore(deps-dev): bump top-bun from 7.3.4 to 8.0.0 [`#193`](https://github.com/bcomnes/deploy-to-neocities/pull/193)
- chore(deps): bump minimatch from 9.0.5 to 10.0.1 [`#192`](https://github.com/bcomnes/deploy-to-neocities/pull/192)
- Remove my hobby website from the website list [`#188`](https://github.com/bcomnes/deploy-to-neocities/pull/188)
- chore(deps-dev): bump esbuild from 0.20.2 to 0.21.0 [`#184`](https://github.com/bcomnes/deploy-to-neocities/pull/184)
### Commits
- Merge pull request #199 from bcomnes/dependabot/npm_and_yarn/esbuild-0.24.0 [`f2bd635`](https://github.com/bcomnes/deploy-to-neocities/commit/f2bd635f4250c0f0c3dbf2fbced0be3608c96f2d)
- chore(deps-dev): bump esbuild from 0.23.1 to 0.24.0 [`90e8a07`](https://github.com/bcomnes/deploy-to-neocities/commit/90e8a074cd8aef07020ac80fbc420ee0a4189615)
- Merge pull request #191 from bcomnes/dependabot/npm_and_yarn/esbuild-0.23.0 [`8999c71`](https://github.com/bcomnes/deploy-to-neocities/commit/8999c710228c8627186a5360a882117a20c16cc1)
## [v2.0.2](https://github.com/bcomnes/deploy-to-neocities/compare/v2.0.1...v2.0.2) - 2024-04-04
### Commits
- Clarify default branch situation in README [`1fcd576`](https://github.com/bcomnes/deploy-to-neocities/commit/1fcd576de99dc8f39086f7239bf22962f3b8e7ae)
## [v2.0.1](https://github.com/bcomnes/deploy-to-neocities/compare/v2.0.0...v2.0.1) - 2024-04-04
### Commits
- Update docs [`5a66259`](https://github.com/bcomnes/deploy-to-neocities/commit/5a66259a88059e84b1a3981aa88389854700f8a8)
## [v2.0.0](https://github.com/bcomnes/deploy-to-neocities/compare/v1.1.21...v2.0.0) - 2024-04-04
### Merged

View File

@ -10,16 +10,18 @@
Efficiently deploy a website to [Neocities][nc] using [Github actions](https://github.com/features/actions). Uses content aware diffing to only update files that changed.
Alternatively, you can use the bin helper in [async-neocities](https://github.com/bcomnes/async-neocities) to deploy to neocities locally from your own machine as well as in CI.
## Usage
```yaml
name: Deploy to neocities
# only run on changes to master
# only run on changes to main. Use main or master depending on whatever your default branch is called.
on:
push:
branches:
- master
- main
concurrency: # prevent concurrent deploys doing strange things
group: deploy-to-neocities
@ -30,23 +32,29 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
# The checkout step copies your repo into the action runner. Important!
- uses: actions/checkout@v4
# Set up any tools and build steps here
# This example uses a Node.js toolchain to build a site
# If you don't need Node.js to build your site, you can omit this.
- name: Use Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: lts/*
# If you have a different build process, replace this with your own build steps
- name: Install deps and build
run: |
npm i
npm run build
# When the dist_dir is ready, deploy it to neocities
# Here we deploy the folder named `public`
- name: Deploy to neocities
uses: bcomnes/deploy-to-neocities@v1
uses: bcomnes/deploy-to-neocities@v3
with:
api_token: ${{ secrets.NEOCITIES_API_TOKEN }}
api_key: ${{ secrets.NEOCITIES_API_TOKEN }}
cleanup: false
neocities_supporter: false # set this to true if you have a supporter account and want to bypass unsuported files filter.
preview_before_deploy: true # print a deployment plan prior to waiting for files to upload.
dist_dir: public
```
@ -61,7 +69,7 @@ You'll need the API token for your site. Go to:
https://neocities.org/settings/{{your-sitename}}#api_key
```
Get your site's API token. In your GitHub repository, set a [secret][sec] called `NEOCITIES_API_TOKEN`. Set the `api_token` input on your `deploy-to-neocities` action to `${{ secrets.NEOCITIES_API_TOKEN }}` as in the example above.
Retreive your site's API token from Neocities. In your GitHub repository, set a [secret][sec] called `NEOCITIES_API_TOKEN`. Set the `api_token` input on your `deploy-to-neocities` action to `${{ secrets.NEOCITIES_API_TOKEN }}` as in the example above. The setting (as of writing) lives in Repository > Settings > Security > Secrets and Variables > Actions > Repository secrets.
During your workflow, generate the files you want to deploy to [Neocities][nc] into a directory. Set this as the `dist_dir` directory in your workflow (the default is `public`). You can use any tools to generate your site that can be installed or brought into the Github actions environment.
@ -71,9 +79,11 @@ You most likely only want to run this on the `master` branch so that only change
### Inputs
- `api_token` (**REQUIRED**): The API token for your [Neocities][nc] website to deploy to.
- `api_key` (**REQUIRED**): The API token for your [Neocities][nc] website to deploy to.
- `dist_dir`: The directory to deploy to [Neocities][nc]. Default: `public`. Don't deploy your root repo directory (e.g. `./`). It contains `.git`, `.github` and other files that won't deploy properly to neocities. Keep it clean by keeping or building your site into a subdir and deploy that.
- `neocities_supporter`: Set this to `true` if you have a paid neocities account and want to bypass the [unsupported files filter](https://neocities.org/site_files/allowed_types).
- `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`.
- `preview_before_deploy`: Boolean string (`true` or `false`). If `true`, `deploy-to-neocities` will print a preview of the files that will be uploaded and deleted. Default: `true`.
- `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
@ -142,6 +152,11 @@ None.
- https://github.com/tencurse/neocities ([10kph.neocities.org](https://10kph.neocities.org/))
- https://github.com/alephdfilms/neocities/ ([alephd.neocities.org](https://alephd.neocities.org/)]
- https://sacred.neocities.org/ (https://github.com/M-Valentino/sacredOS)
- https://lenp.net/ (https://github.com/Len42/web-site)
- <https://punkfairie.net> (<https://github.com/punkfairie/punkfairie-site>)
- https://github.com/jefbecker/jefbecker.com ([jefbecker.com](https://jefbecker.com))
- https://github.com/MymeType/personal-website ([mymetype.neocities.org](https://mymetype.neocities.org/))
- https://github.com/oceanthunder/oceanthunder.github.io ([oceanthunder.dev](https://www.oceanthunder.dev))
- [See more!](https://github.com/bcomnes/deploy-to-neocities/network/dependents)
- ...PR your site when you set it up!

View File

@ -4,20 +4,32 @@ branding:
icon: aperture
color: orange
inputs:
api_token: # api token for site to deploy to
description: 'Neocities API token for site to deploy to'
api_key: # api token for site to deploy to
description: 'Neocities API key for site to deploy to'
required: true
dist_dir:
description: 'Local folder to deploy to neocities'
default: 'public'
required: true
neocities_supporter:
description: 'Set to true if you are a Neocities supporter to bypass file type upload restrictions'
default: 'false'
required: true
cleanup:
description: Delete orphaned files on neocities that don't exist in distDir
default: false
default: 'false'
required: true
preview_before_deploy:
description: 'Set to true if you want to print deploy preview stats prior to deploying.'
default: 'true'
required: false
protected_files:
description: A glob string that prevents matched files from ever being deleted.
required: false
api_token: # api token for site to deploy to
description: 'Neocities API key for site to deploy to'
required: false
deprecationMessage: 'api_token is deprecated, use api_key instead'
runs:
using: 'node20'
main: 'dist/index.js'
main: 'dist/index.cjs'

File diff suppressed because one or more lines are too long

7
dist/index.cjs.map vendored Normal file

File diff suppressed because one or more lines are too long

7
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

9039
dist/meta.json vendored Normal file

File diff suppressed because it is too large Load Diff

8
eslint.config.js Normal file
View File

@ -0,0 +1,8 @@
import neostandard, { resolveIgnoresFromGitignore } from 'neostandard'
export default neostandard({
ignores: [
...resolveIgnoresFromGitignore(),
'dist'
],
})

113
index.js
View File

@ -1,57 +1,84 @@
const core = require('@actions/core')
// const github = require('@actions/github')
const Neocities = require('async-neocities')
const path = require('path')
const ms = require('ms')
const assert = require('webassert').default
const fsp = require('fs').promises
const { minimatch } = require('minimatch')
const { stackWithCauses } = require('pony-cause')
import core from '@actions/core'
import {
NeocitiesAPIClient,
printDeployText,
printPreviewText,
printResultsErrorDump,
SimpleTimer
} from 'async-neocities'
import path from 'node:path'
import assert from 'node:assert'
import fs from 'node:fs/promises'
import { minimatch } from 'minimatch'
let cleanup
async function doDeploy () {
const token = core.getInput('api_token')
async function run () {
const key = core.getInput('api_key') || core.getInput('api_token')
const distDir = path.join(process.cwd(), core.getInput('dist_dir'))
cleanup = JSON.parse(core.getInput('cleanup'))
const cleanup = JSON.parse(core.getInput('cleanup'))
const neocitiesSupporter = JSON.parse(core.getInput('neocities_supporter'))
const previewDeploy = JSON.parse(core.getInput('preview_before_deploy'))
const protectedFilesGlob = core.getInput('protected_files')
assert(typeof cleanup === 'boolean', 'Cleanup input must be a boolean "true" or "false"')
const stat = await fsp.stat(distDir)
assert(stat.isDirectory(), 'dist_dir must be a directory that exists')
assert(typeof cleanup === 'boolean', '`cleanup` input must be a boolean "true" or "false"')
assert(typeof neocitiesSupporter === 'boolean', '`neocities_supporter` input must be a boolean "true" or "false"')
assert(typeof previewDeploy === 'boolean', '`preview_before_deploy` input must be a boolean "true" or "false"')
const client = new Neocities(token)
const stat = await fs.stat(distDir)
const deployOpts = {
cleanup,
statsCb: Neocities.statsHandler()
assert(stat.isDirectory(), '`dist_dir` input must be a path to a directory that exists')
const client = new NeocitiesAPIClient(key)
if (previewDeploy) {
const previewTimer = new SimpleTimer()
console.log('Running deploy preview prior to deployment...\n\n')
const diff = await client.previewDeploy({
directory: distDir,
includeUnsupportedFiles: neocitiesSupporter,
protectedFileFilter: protectedFilesGlob ? minimatch.filter(protectedFilesGlob) : undefined
})
previewTimer.stop()
printPreviewText({
diff,
timer: previewTimer,
cleanup,
includeUnsupportedFiles: neocitiesSupporter
})
}
if (protectedFilesGlob) deployOpts.protectedFileFilter = minimatch.filter(protectedFilesGlob)
const deployTimer = new SimpleTimer()
console.log('Deploying to Neocities...')
const stats = await client.deploy(distDir, deployOpts)
const results = await client.deploy({
directory: distDir,
cleanup,
includeUnsupportedFiles: neocitiesSupporter,
protectedFileFilter: protectedFilesGlob ? minimatch.filter(protectedFilesGlob) : undefined
})
console.log(`Deployed to Neocities in ${ms(stats.time)}:`)
console.log(` Uploaded ${stats.filesToUpload.length} files`)
console.log(` ${cleanup ? 'Deleted' : 'Orphaned'} ${stats.filesToDelete.length} files`)
console.log(` Skipped ${stats.filesSkipped.length} files`)
console.log(` ${stats.protectedFiles.length} protected files:`)
if (stats.protectedFiles.length) {
console.log(stats.protectedFiles)
deployTimer.stop()
if (results.errors.length > 0) {
printResultsErrorDump({
results,
timer: deployTimer
})
core.setFailed('The deploy completed with errors.')
} else {
printDeployText({
results,
timer: deployTimer,
cleanup,
includeUnsupportedFiles: neocitiesSupporter
})
}
}
doDeploy().catch(err => {
console.error(stackWithCauses(err))
if (err.stats) {
console.log('Files to upload: ')
console.dir(err.stats.filesToUpload, { colors: true, depth: 999 })
if (cleanup) {
console.log('Files to delete: ')
console.dir(err.stats.filesToDelete, { colors: true, depth: 999 })
}
}
core.setFailed(err.message)
run().catch(err => {
console.log('Unexpected error/throw during deployment:\n\n')
console.dir(err, { colors: true, depth: 999 })
core.setFailed(err instanceof Error ? err.message : `An unexpected error occurred during deployment: ${err}`)
})

View File

@ -1,32 +1,32 @@
{
"name": "deploy-to-neocities",
"description": "Github Action to deplpoy a folder to Neocities.org",
"version": "2.0.0",
"version": "3.0.4",
"author": "Bret Comnes <bcomnes@gmail.com> (https://bret.io/)",
"bugs": {
"url": "https://github.com/bcomnes/deploy-to-neocities/issues"
},
"dependencies": {
"@actions/core": "1.10.1",
"async-neocities": "2.1.6",
"minimatch": "9.0.4",
"ms": "2.1.3",
"pony-cause": "^2.1.4",
"webassert": "3.0.2"
"@actions/core": "2.0.2",
"async-neocities": "4.1.2",
"minimatch": "10.1.1"
},
"devDependencies": {
"top-bun": "^7.0.0",
"@voxpelli/tsconfig": "^16.1.0",
"top-bun": "^10.0.0",
"auto-changelog": "^2.0.0",
"dependency-check": "^4.1.0",
"gh-release": "^7.0.0",
"npm-run-all2": "^6.0.0",
"standard": "^17.0.0",
"esbuild": "^0.20.0"
"npm-run-all2": "^8.0.1",
"neostandard": "^0.12.0",
"c8": "^10.0.0",
"esbuild": "~0.27.1",
"typescript": "~5.9.3"
},
"homepage": "https://github.com/bcomnes/deploy-to-neocities#readme",
"keywords": [],
"license": "MIT",
"main": "index.js",
"type": "module",
"private": true,
"repository": {
"type": "git",
@ -34,23 +34,20 @@
},
"scripts": {
"build": "npm run clean && run-p build:*",
"build:action": "rm -rf dist && esbuild index.js --bundle --platform=node --target=node16 --sourcemap=external --outdir=dist",
"build:site": "tb --src . --dest public",
"build:action": "rm -rf dist && esbuild index.js --bundle --platform=node --sourcemap=external --outdir=dist --metafile=dist/meta.json --out-extension:.js=.cjs",
"build:site": "tb --src . --dest public --ignore dist,coverage",
"dist-pkg": "echo \"{ \\\"type\\\": \\\"commonjs\\\" }\" > dist/package.json",
"clean": "rm -rf public && mkdir -p public",
"release": "git push --follow-tags && gh-release -y",
"start": "npm run watch",
"test": "run-s test:*",
"test:deps": "dependency-check . --no-dev --no-peer",
"test:standard": "standard",
"test:lint": "eslint",
"test:tsc": "tsc",
"test:node": "c8 node --test",
"version": "run-s version:*",
"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",
"watch": "npm run clean && run-p watch:*",
"watch:site": "npm run build:site -- -w"
},
"standard": {
"ignore": [
"dist"
]
}
}

View File

@ -1,5 +1,6 @@
const tap = require('tap')
import assert from 'node:assert'
import test from 'node:test'
tap.test('test', async t => {
t.ok(true)
test('test', async _t => {
assert.ok(true)
})

14
tsconfig.json Normal file
View File

@ -0,0 +1,14 @@
{
"extends": "@voxpelli/tsconfig/node20.json",
"compilerOptions": {
"skipLibCheck": true
},
"include": [
"**/*"
],
"exclude": [
"node_modules",
"public",
"dist"
]
}