mirror of
https://github.com/bcomnes/deploy-to-neocities.git
synced 2026-01-21 08:51:54 +00:00
Compare commits
56 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3220139f1f | ||
|
|
a662d83b0e | ||
|
|
c2bc8f6e5d | ||
|
|
54879c3402 | ||
|
|
b0b5537ac7 | ||
|
|
bd472e5897 | ||
|
|
201bd8aae3 | ||
|
|
7c1e44b6fa | ||
|
|
d84f74a07d | ||
|
|
bbd84ca5f4 | ||
|
|
f2bd635f42 | ||
|
|
90e8a074cd | ||
|
|
b13a31c0ad | ||
|
|
524519f102 | ||
|
|
05b2d8841c | ||
|
|
78d977e40f | ||
|
|
3a22077d9a | ||
|
|
225c06261c | ||
|
|
8999c71022 | ||
|
|
2c2bdb4833 | ||
|
|
22dddf1668 | ||
|
|
0e7875ee24 | ||
|
|
9edd9b15c5 | ||
|
|
de00ebfb18 | ||
|
|
442fdb16c6 | ||
|
|
66b26b18d1 | ||
|
|
bcd01efa4b | ||
|
|
b5c3f6f80e | ||
|
|
6595f1c246 | ||
|
|
ae08849335 | ||
|
|
3eacba89fd | ||
|
|
5729d50652 | ||
|
|
b089e0d0bc | ||
|
|
e3fac0f3de | ||
|
|
1fcd576de9 | ||
|
|
f4b0c050cf | ||
|
|
5a66259a88 | ||
|
|
e2c175c6c7 | ||
|
|
18ba72a8f3 | ||
|
|
d2622ae949 | ||
|
|
0d910dfd72 | ||
|
|
5cf5f26672 | ||
|
|
0ee4b4c3a5 | ||
|
|
f78a2dae10 | ||
|
|
2e6561aa90 | ||
|
|
8d9b839573 | ||
|
|
2fe29239c9 | ||
|
|
8f42b3ee86 | ||
|
|
bad0c3f219 | ||
|
|
2646c89cd5 | ||
|
|
0ae51ffae1 | ||
|
|
c25e33f18b | ||
|
|
bb890ff252 | ||
|
|
f820123729 | ||
|
|
c3fff5a08e | ||
|
|
caf523c406 |
4
.github/workflows/neocities.yml
vendored
4
.github/workflows/neocities.yml
vendored
@@ -8,7 +8,7 @@ on:
|
|||||||
|
|
||||||
env:
|
env:
|
||||||
FORCE_COLOR: 1
|
FORCE_COLOR: 1
|
||||||
node_version: 16
|
node_version: lts/*
|
||||||
|
|
||||||
concurrency: # prevent concurrent deploys doing strange things
|
concurrency: # prevent concurrent deploys doing strange things
|
||||||
group: deploy-to-neocities
|
group: deploy-to-neocities
|
||||||
@@ -23,7 +23,7 @@ jobs:
|
|||||||
# 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@v3
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: ${{ env.node_version }}
|
node-version: ${{ env.node_version }}
|
||||||
- run: npm i
|
- run: npm i
|
||||||
|
|||||||
4
.github/workflows/release.yml
vendored
4
.github/workflows/release.yml
vendored
@@ -8,7 +8,7 @@ on:
|
|||||||
required: true
|
required: true
|
||||||
|
|
||||||
env:
|
env:
|
||||||
node_version: 16
|
node_version: lts/*
|
||||||
FORCE_COLOR: 1
|
FORCE_COLOR: 1
|
||||||
|
|
||||||
concurrency: # prevent concurrent releases
|
concurrency: # prevent concurrent releases
|
||||||
@@ -23,7 +23,7 @@ jobs:
|
|||||||
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@v3
|
- uses: actions/setup-node@v4
|
||||||
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
|
||||||
|
|||||||
4
.github/workflows/test.yml
vendored
4
.github/workflows/test.yml
vendored
@@ -12,12 +12,12 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
os: [ubuntu-latest]
|
os: [ubuntu-latest]
|
||||||
node: [16]
|
node: [lts/*]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: Use Node.js ${{ matrix.node }}
|
- name: Use Node.js ${{ matrix.node }}
|
||||||
uses: actions/setup-node@v3
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: ${{ matrix.node }}
|
node-version: ${{ matrix.node }}
|
||||||
- run: npm i
|
- run: npm i
|
||||||
|
|||||||
78
CHANGELOG.md
78
CHANGELOG.md
@@ -7,7 +7,83 @@ 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.1.19](https://github.com/bcomnes/deploy-to-neocities/compare/v1.1.18...v1.1.19)
|
## [v2.0.4](https://github.com/bcomnes/deploy-to-neocities/compare/v2.0.3...v2.0.4)
|
||||||
|
|
||||||
|
### 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
|
||||||
|
|
||||||
|
- Added https://sacred.neocities.org [`#175`](https://github.com/bcomnes/deploy-to-neocities/pull/175)
|
||||||
|
- chore(deps-dev): bump esbuild from 0.19.12 to 0.20.0 [`#170`](https://github.com/bcomnes/deploy-to-neocities/pull/170)
|
||||||
|
- chore(deps): bump actions/setup-node from 3 to 4 [`#165`](https://github.com/bcomnes/deploy-to-neocities/pull/165)
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
- **Breaking change:** Update action runtime to node20 [`#174`](https://github.com/bcomnes/deploy-to-neocities/issues/174)
|
||||||
|
|
||||||
|
### Commits
|
||||||
|
|
||||||
|
- Merge pull request #179 from bcomnes/dependabot/npm_and_yarn/minimatch-9.0.4 [`d2622ae`](https://github.com/bcomnes/deploy-to-neocities/commit/d2622ae949a095974f8a3ffb695d70658a9911fa)
|
||||||
|
- chore(deps): bump minimatch from 9.0.3 to 9.0.4 [`0d910df`](https://github.com/bcomnes/deploy-to-neocities/commit/0d910dfd72d5c6a016940426f91622f84d1dbdca)
|
||||||
|
- Update README.md [`0ee4b4c`](https://github.com/bcomnes/deploy-to-neocities/commit/0ee4b4c3a5bbab316700252a7e41e758773e2737)
|
||||||
|
|
||||||
|
## [v1.1.21](https://github.com/bcomnes/deploy-to-neocities/compare/v1.1.20...v1.1.21) - 2023-12-02
|
||||||
|
|
||||||
|
### Merged
|
||||||
|
|
||||||
|
- chore(deps-dev): bump @siteup/cli from 4.0.1 to 5.0.0 [`#163`](https://github.com/bcomnes/deploy-to-neocities/pull/163)
|
||||||
|
- chore(deps): bump actions/setup-node from 3 to 4 [`#162`](https://github.com/bcomnes/deploy-to-neocities/pull/162)
|
||||||
|
|
||||||
|
### Commits
|
||||||
|
|
||||||
|
- Update node in actions and rebuild [`bad0c3f`](https://github.com/bcomnes/deploy-to-neocities/commit/bad0c3f21924f957bd2d41156f9ae9894e8d01a1)
|
||||||
|
|
||||||
|
## [v1.1.20](https://github.com/bcomnes/deploy-to-neocities/compare/v1.1.19...v1.1.20) - 2023-10-22
|
||||||
|
|
||||||
|
### Merged
|
||||||
|
|
||||||
|
- chore(deps-dev): bump @siteup/cli from 2.2.11 to 3.1.0 [`#161`](https://github.com/bcomnes/deploy-to-neocities/pull/161)
|
||||||
|
|
||||||
|
### Commits
|
||||||
|
|
||||||
|
- Update async-neocities to 2.1.6 [`f820123`](https://github.com/bcomnes/deploy-to-neocities/commit/f8201237291216a53f9c4dde35c46a65a8ea534d)
|
||||||
|
|
||||||
|
## [v1.1.19](https://github.com/bcomnes/deploy-to-neocities/compare/v1.1.18...v1.1.19) - 2023-09-30
|
||||||
|
|
||||||
### Merged
|
### Merged
|
||||||
|
|
||||||
|
|||||||
11
README.md
11
README.md
@@ -15,11 +15,11 @@ Efficiently deploy a website to [Neocities][nc] using [Github actions](https://g
|
|||||||
```yaml
|
```yaml
|
||||||
name: Deploy to neocities
|
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:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- master
|
- main
|
||||||
|
|
||||||
concurrency: # prevent concurrent deploys doing strange things
|
concurrency: # prevent concurrent deploys doing strange things
|
||||||
group: deploy-to-neocities
|
group: deploy-to-neocities
|
||||||
@@ -43,7 +43,7 @@ jobs:
|
|||||||
npm run build
|
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@v1
|
uses: bcomnes/deploy-to-neocities@v2
|
||||||
with:
|
with:
|
||||||
api_token: ${{ secrets.NEOCITIES_API_TOKEN }}
|
api_token: ${{ secrets.NEOCITIES_API_TOKEN }}
|
||||||
cleanup: false
|
cleanup: false
|
||||||
@@ -72,7 +72,7 @@ You most likely only want to run this on the `master` branch so that only change
|
|||||||
### Inputs
|
### Inputs
|
||||||
|
|
||||||
- `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`. 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.
|
- `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.
|
||||||
- `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.
|
- `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.
|
||||||
|
|
||||||
@@ -141,6 +141,9 @@ None.
|
|||||||
- https://profsugoi.neocities.org/
|
- https://profsugoi.neocities.org/
|
||||||
- https://github.com/tencurse/neocities ([10kph.neocities.org](https://10kph.neocities.org/))
|
- 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://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>)
|
||||||
- [See more!](https://github.com/bcomnes/deploy-to-neocities/network/dependents)
|
- [See more!](https://github.com/bcomnes/deploy-to-neocities/network/dependents)
|
||||||
- ...PR your site when you set it up!
|
- ...PR your site when you set it up!
|
||||||
|
|
||||||
|
|||||||
@@ -19,5 +19,5 @@ inputs:
|
|||||||
description: A glob string that prevents matched files from ever being deleted.
|
description: A glob string that prevents matched files from ever being deleted.
|
||||||
required: false
|
required: false
|
||||||
runs:
|
runs:
|
||||||
using: 'node16'
|
using: 'node20'
|
||||||
main: 'dist/index.js'
|
main: 'dist/index.js'
|
||||||
|
|||||||
21077
dist/index.js
vendored
21077
dist/index.js
vendored
File diff suppressed because one or more lines are too long
8
dist/index.js.map
vendored
8
dist/index.js.map
vendored
File diff suppressed because one or more lines are too long
16
package.json
16
package.json
@@ -1,28 +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.1.19",
|
"version": "2.0.4",
|
||||||
"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.10.1",
|
"@actions/core": "1.11.1",
|
||||||
"async-neocities": "2.1.5",
|
"async-neocities": "2.1.6",
|
||||||
"minimatch": "9.0.3",
|
"minimatch": "10.0.1",
|
||||||
"ms": "2.1.3",
|
"ms": "2.1.3",
|
||||||
"pony-cause": "^2.1.4",
|
"pony-cause": "^2.1.4",
|
||||||
"webassert": "3.0.2"
|
"webassert": "3.0.2"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@siteup/cli": "^2.0.0",
|
"top-bun": "^10.0.0",
|
||||||
"auto-changelog": "^2.0.0",
|
"auto-changelog": "^2.0.0",
|
||||||
"browser-sync": "^2.27.7",
|
|
||||||
"dependency-check": "^4.1.0",
|
"dependency-check": "^4.1.0",
|
||||||
"gh-release": "^7.0.0",
|
"gh-release": "^7.0.0",
|
||||||
"npm-run-all2": "^6.0.0",
|
"npm-run-all2": "^6.0.0",
|
||||||
"standard": "^17.0.0",
|
"standard": "^17.0.0",
|
||||||
"esbuild": "^0.19.0"
|
"esbuild": "^0.24.0"
|
||||||
},
|
},
|
||||||
"homepage": "https://github.com/bcomnes/deploy-to-neocities#readme",
|
"homepage": "https://github.com/bcomnes/deploy-to-neocities#readme",
|
||||||
"keywords": [],
|
"keywords": [],
|
||||||
@@ -36,7 +35,7 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "npm run clean && run-p build:*",
|
"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:action": "rm -rf dist && esbuild index.js --bundle --platform=node --target=node16 --sourcemap=external --outdir=dist",
|
||||||
"build:site": "siteup --src . --dest public",
|
"build:site": "tb --src . --dest public",
|
||||||
"clean": "rm -rf public && mkdir -p public",
|
"clean": "rm -rf public && mkdir -p 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,7 +46,6 @@
|
|||||||
"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:serve": "browser-sync start --server 'public' --files 'public'",
|
|
||||||
"watch:site": "npm run build:site -- -w"
|
"watch:site": "npm run build:site -- -w"
|
||||||
},
|
},
|
||||||
"standard": {
|
"standard": {
|
||||||
|
|||||||
Reference in New Issue
Block a user