mirror of
https://github.com/bcomnes/deploy-to-neocities.git
synced 2026-01-21 00:46:29 +00:00
Compare commits
67 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e285292494 | ||
|
|
7304be8189 | ||
|
|
96cab61350 | ||
|
|
612eaa3c01 | ||
|
|
b6e88c0383 | ||
|
|
f417d42694 | ||
|
|
a9b4f04af1 | ||
|
|
786c98ee8d | ||
|
|
2761a4b538 | ||
|
|
2faa8345a8 | ||
|
|
ae4abd7e27 | ||
|
|
e3e555927c | ||
|
|
e04c11b5e4 | ||
|
|
990011bf36 | ||
|
|
5dda7b9d7a | ||
|
|
97a3bdd7ff | ||
|
|
86a0fba676 | ||
|
|
b5e74f0efd | ||
|
|
1114060652 | ||
|
|
e00b896343 | ||
|
|
056a8c9940 | ||
|
|
5a689c25d8 | ||
|
|
3f1ce1ffb0 | ||
|
|
969ba2cc61 | ||
|
|
115b9e855f | ||
|
|
6fcd2fe52c | ||
|
|
523524ca70 | ||
|
|
8fae4b2c6c | ||
|
|
c907c30f9c | ||
|
|
c7b4dca027 | ||
|
|
f0f33d7da4 | ||
|
|
69e8a94c47 | ||
|
|
59a102c463 | ||
|
|
4f62bb5b90 | ||
|
|
8f9be808b5 | ||
|
|
53bfeb132c | ||
|
|
853a9a7fe2 | ||
|
|
d98f2e152b | ||
|
|
48b61f22d5 | ||
|
|
fe942e2bfe | ||
|
|
de57ddf5ae | ||
|
|
1f2e44c5ca | ||
|
|
f51969618c | ||
|
|
635243fdea | ||
|
|
9808b8398b | ||
|
|
cec985e2c2 | ||
|
|
90217b6969 | ||
|
|
36e9d75643 | ||
|
|
46319ec803 | ||
|
|
3cfd2ec3ee | ||
|
|
65cb789757 | ||
|
|
0c151ce644 | ||
|
|
5e51c4db74 | ||
|
|
bda6c1eb47 | ||
|
|
9b6571537b | ||
|
|
3f28c61b67 | ||
|
|
abd41037ae | ||
|
|
238fd68774 | ||
|
|
d093da534e | ||
|
|
c5dbf20c79 | ||
|
|
64e5c39322 | ||
|
|
c6717e2bf3 | ||
|
|
6a484414dd | ||
|
|
511266073a | ||
|
|
bab9d12e07 | ||
|
|
86e9b5be1e | ||
|
|
0b897bb2ca |
2
.github/workflows/neocities.yml
vendored
2
.github/workflows/neocities.yml
vendored
@@ -8,7 +8,7 @@ on:
|
||||
|
||||
env:
|
||||
FORCE_COLOR: 2
|
||||
node_version: lts/*
|
||||
node_version: 16
|
||||
|
||||
concurrency: # prevent concurrent deploys doing starnge things
|
||||
group: deploy-to-neocities
|
||||
|
||||
4
.github/workflows/release.yml
vendored
4
.github/workflows/release.yml
vendored
@@ -8,7 +8,7 @@ on:
|
||||
required: true
|
||||
|
||||
env:
|
||||
node_version: lts/*
|
||||
node_version: 16
|
||||
FORCE_COLOR: 2
|
||||
|
||||
concurrency: # prevent concurrent releases
|
||||
@@ -30,7 +30,7 @@ jobs:
|
||||
registry-url: 'https://registry.npmjs.org'
|
||||
- run: npm i
|
||||
- run: npm test
|
||||
- uses: bcomnes/npm-bump@v2.0.2
|
||||
- uses: bcomnes/npm-bump@v2.1.0
|
||||
with:
|
||||
git_email: bcomnes@gmail.com
|
||||
git_username: ${{ github.actor }}
|
||||
|
||||
2
.github/workflows/test.yml
vendored
2
.github/workflows/test.yml
vendored
@@ -12,7 +12,7 @@ jobs:
|
||||
strategy:
|
||||
matrix:
|
||||
os: [ubuntu-latest]
|
||||
node: [lts/*]
|
||||
node: [16]
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
103
CHANGELOG.md
103
CHANGELOG.md
@@ -7,7 +7,108 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||
|
||||
Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
||||
|
||||
## [v1.1.6](https://github.com/bcomnes/deploy-to-neocities/compare/v1.1.5...v1.1.6)
|
||||
## [v1.1.15](https://github.com/bcomnes/deploy-to-neocities/compare/v1.1.14...v1.1.15)
|
||||
|
||||
### Merged
|
||||
|
||||
- chore(deps): bump minimatch from 6.1.3 to 6.1.5 [`#121`](https://github.com/bcomnes/deploy-to-neocities/pull/121)
|
||||
|
||||
## [v1.1.14](https://github.com/bcomnes/deploy-to-neocities/compare/v1.1.13...v1.1.14) - 2023-01-17
|
||||
|
||||
### Merged
|
||||
|
||||
- chore(deps-dev): bump mkdirp from 1.0.4 to 2.1.1 [`#118`](https://github.com/bcomnes/deploy-to-neocities/pull/118)
|
||||
- chore(deps): bump minimatch from 5.1.2 to 6.0.4 [`#117`](https://github.com/bcomnes/deploy-to-neocities/pull/117)
|
||||
|
||||
### Commits
|
||||
|
||||
- test build [`b6e88c0`](https://github.com/bcomnes/deploy-to-neocities/commit/b6e88c0383e2e7a2b6f71afd4ab109681eec3dba)
|
||||
- Switch to esbuild [`f417d42`](https://github.com/bcomnes/deploy-to-neocities/commit/f417d42694329e4a2863c587f0d2889fd691da1c)
|
||||
- Revert "chore(deps): bump minimatch from 5.1.2 to 6.0.4" [`2761a4b`](https://github.com/bcomnes/deploy-to-neocities/commit/2761a4b53809f85506d8c9388e2bd7f4ff0ae58b)
|
||||
|
||||
## [v1.1.13](https://github.com/bcomnes/deploy-to-neocities/compare/v1.1.12...v1.1.13) - 2022-12-21
|
||||
|
||||
### Merged
|
||||
|
||||
- chore(deps): bump minimatch from 5.1.1 to 5.1.2 [`#115`](https://github.com/bcomnes/deploy-to-neocities/pull/115)
|
||||
|
||||
### Commits
|
||||
|
||||
- Update example to use actions v3 [`97a3bdd`](https://github.com/bcomnes/deploy-to-neocities/commit/97a3bdd7ff2cb7dd8a61969d6a3a8029d331bd29)
|
||||
- Update README.md [`5dda7b9`](https://github.com/bcomnes/deploy-to-neocities/commit/5dda7b9d7afe5f87039e8bff30d1dd6d5eeb793e)
|
||||
|
||||
## [v1.1.12](https://github.com/bcomnes/deploy-to-neocities/compare/v1.1.11...v1.1.12) - 2022-12-20
|
||||
|
||||
### Merged
|
||||
|
||||
- chore(deps-dev): bump @vercel/ncc from 0.34.0 to 0.36.0 [`#112`](https://github.com/bcomnes/deploy-to-neocities/pull/112)
|
||||
- chore(deps): bump minimatch from 5.1.0 to 5.1.1 [`#111`](https://github.com/bcomnes/deploy-to-neocities/pull/111)
|
||||
|
||||
### Commits
|
||||
|
||||
- Update action to use node 16 [`b5e74f0`](https://github.com/bcomnes/deploy-to-neocities/commit/b5e74f0efddc239968a312e1bae4501d3e84f9a9)
|
||||
- Merge pull request #113 from bcomnes/dependabot/npm_and_yarn/gh-release-7.0.0 [`1114060`](https://github.com/bcomnes/deploy-to-neocities/commit/1114060652dade40eaacdea104051d6e13a096a3)
|
||||
- chore(deps-dev): bump gh-release from 6.0.4 to 7.0.0 [`e00b896`](https://github.com/bcomnes/deploy-to-neocities/commit/e00b89634371d88950fa4f3ec2a8892888bc98e2)
|
||||
|
||||
## [v1.1.11](https://github.com/bcomnes/deploy-to-neocities/compare/v1.1.10...v1.1.11) - 2022-11-07
|
||||
|
||||
### Merged
|
||||
|
||||
- the site is open-source again [`#107`](https://github.com/bcomnes/deploy-to-neocities/pull/107)
|
||||
- info [`#104`](https://github.com/bcomnes/deploy-to-neocities/pull/104)
|
||||
- chore(deps): bump bcomnes/npm-bump from 2.0.2 to 2.1.0 [`#105`](https://github.com/bcomnes/deploy-to-neocities/pull/105)
|
||||
|
||||
### Commits
|
||||
|
||||
- Print error cause no matter what [`8fae4b2`](https://github.com/bcomnes/deploy-to-neocities/commit/8fae4b2c6c1923355b43f7dcfd2efdad7279ffc1)
|
||||
- Update README.md [`c7b4dca`](https://github.com/bcomnes/deploy-to-neocities/commit/c7b4dca027b41fa09bc9d92efa5489238bc98a5a)
|
||||
|
||||
## [v1.1.10](https://github.com/bcomnes/deploy-to-neocities/compare/v1.1.9...v1.1.10) - 2022-10-03
|
||||
|
||||
### Merged
|
||||
|
||||
- chore(deps): bump @actions/core from 1.9.1 to 1.10.0 [`#102`](https://github.com/bcomnes/deploy-to-neocities/pull/102)
|
||||
- the site is open-source again [`#103`](https://github.com/bcomnes/deploy-to-neocities/pull/103)
|
||||
- added notice about my site source code [`#100`](https://github.com/bcomnes/deploy-to-neocities/pull/100)
|
||||
- Update README.md [`#97`](https://github.com/bcomnes/deploy-to-neocities/pull/97)
|
||||
- add conorsheehan1.neocities.org [`#95`](https://github.com/bcomnes/deploy-to-neocities/pull/95)
|
||||
|
||||
### Commits
|
||||
|
||||
- Bump async-neocities to 2.1.3 [`8f9be80`](https://github.com/bcomnes/deploy-to-neocities/commit/8f9be808b5b4f9e1d9a316b391c7c21acfcba3ad)
|
||||
- Merge pull request #96 from bechnokid/patch-1 [`635243f`](https://github.com/bcomnes/deploy-to-neocities/commit/635243fdea7e5d224675222008031a553bc142c3)
|
||||
- Add bechnokid.neocities.org to README.md [`9808b83`](https://github.com/bcomnes/deploy-to-neocities/commit/9808b8398bf70ac8e2a41172c74eb9f66e7d0d89)
|
||||
|
||||
## [v1.1.9](https://github.com/bcomnes/deploy-to-neocities/compare/v1.1.8...v1.1.9) - 2022-08-10
|
||||
|
||||
### Commits
|
||||
|
||||
- Update deps to fix hung actions [`46319ec`](https://github.com/bcomnes/deploy-to-neocities/commit/46319ec8034824d8a562f3f449080400f2fc0218)
|
||||
- Merge pull request #94 from bcomnes/dependabot/npm_and_yarn/actions/core-1.9.1 [`3cfd2ec`](https://github.com/bcomnes/deploy-to-neocities/commit/3cfd2ec3ee0474635567bbfc56763329693b16cf)
|
||||
- chore(deps): bump @actions/core from 1.9.0 to 1.9.1 [`65cb789`](https://github.com/bcomnes/deploy-to-neocities/commit/65cb7897571e6b168e5ba8b0823307c4fe64bc7d)
|
||||
|
||||
## [v1.1.8](https://github.com/bcomnes/deploy-to-neocities/compare/v1.1.7...v1.1.8) - 2022-07-22
|
||||
|
||||
### Fixed
|
||||
|
||||
- s/zeit/vercel [`#92`](https://github.com/bcomnes/deploy-to-neocities/issues/92)
|
||||
|
||||
### Commits
|
||||
|
||||
- Merge pull request #93 from bcomnes/docs [`5e51c4d`](https://github.com/bcomnes/deploy-to-neocities/commit/5e51c4db747382faa9f56d0f8de8f37d2a5842e5)
|
||||
- Merge pull request #91 from fu-sen/patch-1 [`bda6c1e`](https://github.com/bcomnes/deploy-to-neocities/commit/bda6c1eb47143325a36eea712ac9c954f1c70f12)
|
||||
- Use lts/* [`9b65715`](https://github.com/bcomnes/deploy-to-neocities/commit/9b6571537b238f3446151711b1ea115e4d4e4023)
|
||||
|
||||
## [v1.1.7](https://github.com/bcomnes/deploy-to-neocities/compare/v1.1.6...v1.1.7) - 2022-06-17
|
||||
|
||||
### Merged
|
||||
|
||||
- chore(deps): bump @actions/core from 1.8.2 to 1.9.0 [`#89`](https://github.com/bcomnes/deploy-to-neocities/pull/89)
|
||||
- Update README.md [`#88`](https://github.com/bcomnes/deploy-to-neocities/pull/88)
|
||||
- chore(deps-dev): bump npm-run-all2 from 5.0.2 to 6.0.0 [`#87`](https://github.com/bcomnes/deploy-to-neocities/pull/87)
|
||||
- please add me [`#85`](https://github.com/bcomnes/deploy-to-neocities/pull/85)
|
||||
|
||||
## [v1.1.6](https://github.com/bcomnes/deploy-to-neocities/compare/v1.1.5...v1.1.6) - 2022-05-26
|
||||
|
||||
### Merged
|
||||
|
||||
|
||||
15
README.md
15
README.md
@@ -29,13 +29,13 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- uses: actions/checkout@v3
|
||||
# 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@v1
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 12
|
||||
node-version: lts/*
|
||||
- name: Install deps and build
|
||||
run: |
|
||||
npm i
|
||||
@@ -102,7 +102,7 @@ None.
|
||||
- [Support the distributed web](https://neocities.org/distributed-web). Built in IPFS support.
|
||||
- [Beginner friendly docs](https://neocities.org/tutorials) for learning how to make your own websites.
|
||||
|
||||
### What are some of the drawbacks compared to Netlify/Zeit?
|
||||
### What are some of the drawbacks compared to Netlify/Vercel?
|
||||
|
||||
- Not appropriate for hyper traffic commercial sites most likely.
|
||||
- No concept of a Deploy or atomicity when changing files.
|
||||
@@ -113,8 +113,6 @@ None.
|
||||
|
||||
## Sites using deploy-to-neocities
|
||||
|
||||
(Some may be NSFW)
|
||||
|
||||
- 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/gumcast/gumcast-client ([gumcast.com](https://gumcast.com))
|
||||
@@ -136,6 +134,11 @@ None.
|
||||
- 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))
|
||||
- https://github.com/rogerahuntley/neocities-site ([stealdog.neocities.org](https://stealdog.neocities.org))
|
||||
- https://github.com/ConorSheehan1/conorsheehan1.neocities.org ([conorsheehan1.neocities.org](https://conorsheehan1.neocities.org))
|
||||
- https://github.com/bechnokid/neocities ([bechnokid.neocities.org](https://bechnokid.neocities.org))
|
||||
- https://github.com/lime360/website ([lime360.neocities.org](https://lime360.neocities.org))
|
||||
- [See more!](https://github.com/bcomnes/deploy-to-neocities/network/dependents)
|
||||
- ...PR your site when you set it up!
|
||||
|
||||
## See also
|
||||
|
||||
@@ -19,5 +19,5 @@ inputs:
|
||||
description: A glob string that prevents matched files from ever being deleted.
|
||||
required: false
|
||||
runs:
|
||||
using: 'node12'
|
||||
using: 'node16'
|
||||
main: 'dist/index.js'
|
||||
|
||||
37838
dist/index.js
vendored
37838
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
1
dist/sourcemap-register.js
vendored
1
dist/sourcemap-register.js
vendored
File diff suppressed because one or more lines are too long
3
index.js
3
index.js
@@ -6,6 +6,7 @@ const ms = require('ms')
|
||||
const assert = require('webassert').default
|
||||
const fsp = require('fs').promises
|
||||
const minimatch = require('minimatch')
|
||||
const { stackWithCauses } = require('pony-cause')
|
||||
|
||||
let cleanup
|
||||
|
||||
@@ -41,7 +42,7 @@ async function doDeploy () {
|
||||
}
|
||||
|
||||
doDeploy().catch(err => {
|
||||
console.error(err)
|
||||
console.error(stackWithCauses(err))
|
||||
if (err.stats) {
|
||||
console.log('Files to upload: ')
|
||||
console.dir(err.stats.filesToUpload, { colors: true, depth: 999 })
|
||||
|
||||
21
package.json
21
package.json
@@ -1,28 +1,29 @@
|
||||
{
|
||||
"name": "deploy-to-neocities",
|
||||
"description": "Github Action to deplpoy a folder to Neocities.org",
|
||||
"version": "1.1.6",
|
||||
"version": "1.1.15",
|
||||
"author": "Bret Comnes <bcomnes@gmail.com> (https://bret.io/)",
|
||||
"bugs": {
|
||||
"url": "https://github.com/bcomnes/deploy-to-neocities/issues"
|
||||
},
|
||||
"dependencies": {
|
||||
"@actions/core": "1.8.2",
|
||||
"async-neocities": "2.1.1",
|
||||
"minimatch": "^5.0.0",
|
||||
"@actions/core": "1.10.0",
|
||||
"async-neocities": "2.1.5",
|
||||
"minimatch": "6.1.5",
|
||||
"ms": "2.1.3",
|
||||
"pony-cause": "^2.1.4",
|
||||
"webassert": "3.0.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@siteup/cli": "^2.0.0",
|
||||
"@vercel/ncc": "^0.34.0",
|
||||
"auto-changelog": "^2.0.0",
|
||||
"browser-sync": "^2.27.7",
|
||||
"dependency-check": "^4.1.0",
|
||||
"gh-release": "^6.0.0",
|
||||
"mkdirp": "^1.0.4",
|
||||
"npm-run-all2": "^5.0.2",
|
||||
"standard": "^17.0.0"
|
||||
"gh-release": "^7.0.0",
|
||||
"mkdirp": "^2.1.1",
|
||||
"npm-run-all2": "^6.0.0",
|
||||
"standard": "^17.0.0",
|
||||
"esbuild": "^0.17.2"
|
||||
},
|
||||
"homepage": "https://github.com/bcomnes/deploy-to-neocities#readme",
|
||||
"keywords": [],
|
||||
@@ -35,7 +36,7 @@
|
||||
},
|
||||
"scripts": {
|
||||
"build": "npm run clean && run-p build:*",
|
||||
"build:action": "rm -rf dist && ncc build index.js -o dist -s",
|
||||
"build:action": "rm -rf dist && esbuild index.js --bundle --platform=node --target=node16 --sourcemap=external --outdir=dist",
|
||||
"build:site": "siteup --src . --dest public",
|
||||
"clean": "rimraf public && mkdirp public",
|
||||
"release": "git push --follow-tags && gh-release -y",
|
||||
|
||||
Reference in New Issue
Block a user