Compare commits

..

43 Commits

Author SHA1 Message Date
bcomnes
44798856b1 1.1.1 2021-08-20 14:23:37 +00:00
Bret
e5cdffd285 Merge pull request #50 from bcomnes/dependabot/npm_and_yarn/actions/core-1.5.0
chore(deps): bump @actions/core from 1.4.0 to 1.5.0
2021-08-20 08:22:42 -06:00
dependabot[bot]
2e14724f72 chore(deps): bump @actions/core from 1.4.0 to 1.5.0
Bumps [@actions/core](https://github.com/actions/toolkit/tree/HEAD/packages/core) from 1.4.0 to 1.5.0.
- [Release notes](https://github.com/actions/toolkit/releases)
- [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>
2021-08-20 03:04:22 +00:00
dependabot[bot]
269cea9a85 chore(deps): bump fastify/github-action-merge-dependabot (#49)
Bumps [fastify/github-action-merge-dependabot](https://github.com/fastify/github-action-merge-dependabot) from 2.3.0 to 2.4.0.
- [Release notes](https://github.com/fastify/github-action-merge-dependabot/releases)
- [Commits](https://github.com/fastify/github-action-merge-dependabot/compare/v2.3.0...v2.4.0)

---
updated-dependencies:
- dependency-name: fastify/github-action-merge-dependabot
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-08-11 03:04:33 +00:00
dependabot[bot]
b05435526e chore(deps): bump fastify/github-action-merge-dependabot (#48)
Bumps [fastify/github-action-merge-dependabot](https://github.com/fastify/github-action-merge-dependabot) from 2.2.0 to 2.3.0.
- [Release notes](https://github.com/fastify/github-action-merge-dependabot/releases)
- [Commits](https://github.com/fastify/github-action-merge-dependabot/compare/v2.2.0...v2.3.0)

---
updated-dependencies:
- dependency-name: fastify/github-action-merge-dependabot
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-08-10 03:03:23 +00:00
dependabot[bot]
c141314092 chore(deps): bump actions/setup-node from 2.3.2 to 2.4.0 (#47)
Bumps [actions/setup-node](https://github.com/actions/setup-node) from 2.3.2 to 2.4.0.
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](https://github.com/actions/setup-node/compare/v2.3.2...v2.4.0)

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

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-08-06 03:03:14 +00:00
dependabot[bot]
5376b1e544 chore(deps): bump actions/setup-node from 2.3.1 to 2.3.2 (#46)
Bumps [actions/setup-node](https://github.com/actions/setup-node) from 2.3.1 to 2.3.2.
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](https://github.com/actions/setup-node/compare/v2.3.1...v2.3.2)

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

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-08-05 03:03:19 +00:00
dependabot[bot]
c5b9053826 chore(deps): bump actions/setup-node from 2.3.0 to 2.3.1 (#45)
Bumps [actions/setup-node](https://github.com/actions/setup-node) from 2.3.0 to 2.3.1.
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](https://github.com/actions/setup-node/compare/v2.3.0...v2.3.1)

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

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-08-04 03:03:37 +00:00
Bret
c20b64ec3a Update README.md 2021-08-03 13:42:48 -06:00
dependabot[bot]
dc4d4eeff9 chore(deps): bump actions/setup-node from 2.2.0 to 2.3.0 (#44)
Bumps [actions/setup-node](https://github.com/actions/setup-node) from 2.2.0 to 2.3.0.
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](https://github.com/actions/setup-node/compare/v2.2.0...v2.3.0)

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

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-07-21 03:03:33 +00:00
dependabot[bot]
d2a405bb36 chore(deps): bump fastify/github-action-merge-dependabot (#43)
Bumps [fastify/github-action-merge-dependabot](https://github.com/fastify/github-action-merge-dependabot) from 2.1.1 to 2.2.0.
- [Release notes](https://github.com/fastify/github-action-merge-dependabot/releases)
- [Commits](https://github.com/fastify/github-action-merge-dependabot/compare/v2.1.1...v2.2.0)

---
updated-dependencies:
- dependency-name: fastify/github-action-merge-dependabot
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-07-05 03:03:20 +00:00
dependabot[bot]
73581be8da chore(deps): bump actions/setup-node from 2.1.5 to 2.2.0 (#42)
Bumps [actions/setup-node](https://github.com/actions/setup-node) from 2.1.5 to 2.2.0.
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](https://github.com/actions/setup-node/compare/v2.1.5...v2.2.0)

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

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-07-01 03:04:13 +00:00
Bret
3050c92cd1 Merge pull request #41 from bcomnes/dependabot/npm_and_yarn/actions/core-1.4.0
chore(deps): bump @actions/core from 1.3.0 to 1.4.0
2021-06-08 10:17:50 -06:00
dependabot[bot]
14bee33aca chore(deps): bump @actions/core from 1.3.0 to 1.4.0
Bumps [@actions/core](https://github.com/actions/toolkit/tree/HEAD/packages/core) from 1.3.0 to 1.4.0.
- [Release notes](https://github.com/actions/toolkit/releases)
- [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>
2021-06-08 05:22:28 +00:00
dependabot[bot]
01a9dd76fb chore(deps): bump fastify/github-action-merge-dependabot (#40)
Bumps [fastify/github-action-merge-dependabot](https://github.com/fastify/github-action-merge-dependabot) from 2.1.0 to 2.1.1.
- [Release notes](https://github.com/fastify/github-action-merge-dependabot/releases)
- [Commits](https://github.com/fastify/github-action-merge-dependabot/compare/v2.1.0...v2.1.1)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-31 06:06:34 +00:00
dependabot[bot]
ea2f09c886 chore(deps): bump fastify/github-action-merge-dependabot (#39)
Bumps [fastify/github-action-merge-dependabot](https://github.com/fastify/github-action-merge-dependabot) from 2.0.0 to 2.1.0.
- [Release notes](https://github.com/fastify/github-action-merge-dependabot/releases)
- [Commits](https://github.com/fastify/github-action-merge-dependabot/compare/v2.0.0...v2.1.0)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-27 05:40:43 +00:00
Bret
e51d6e0f99 Merge pull request #38 from bcomnes/dependabot/npm_and_yarn/actions/core-1.3.0
chore(deps): bump @actions/core from 1.2.7 to 1.3.0
2021-05-24 10:20:42 -06:00
dependabot[bot]
be68564ed0 chore(deps): bump @actions/core from 1.2.7 to 1.3.0
Bumps [@actions/core](https://github.com/actions/toolkit/tree/HEAD/packages/core) from 1.2.7 to 1.3.0.
- [Release notes](https://github.com/actions/toolkit/releases)
- [Changelog](https://github.com/actions/toolkit/blob/main/packages/core/RELEASES.md)
- [Commits](https://github.com/actions/toolkit/commits/HEAD/packages/core)

Signed-off-by: dependabot[bot] <support@github.com>
2021-05-24 06:11:56 +00:00
Bret
23f364e349 Merge pull request #37 from bcomnes/dependabot/npm_and_yarn/gh-release-6.0.0
chore(deps-dev): bump gh-release from 5.0.2 to 6.0.0
2021-05-21 09:25:25 -06:00
dependabot[bot]
33ef0e7fab chore(deps-dev): bump gh-release from 5.0.2 to 6.0.0
Bumps [gh-release](https://github.com/hypermodules/gh-release) from 5.0.2 to 6.0.0.
- [Release notes](https://github.com/hypermodules/gh-release/releases)
- [Changelog](https://github.com/hypermodules/gh-release/blob/master/CHANGELOG.md)
- [Commits](https://github.com/hypermodules/gh-release/compare/v5.0.2...v6.0.0)

Signed-off-by: dependabot[bot] <support@github.com>
2021-05-21 05:41:20 +00:00
dependabot[bot]
94fb156784 chore(deps): bump actions/checkout from 2 to 2.3.4 (#36)
Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 2.3.4.
- [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/v2...v2.3.4)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-12 05:12:51 +00:00
Bret
44e467a189 Merge pull request #35 from bcomnes/dependabot/npm_and_yarn/actions/core-1.2.7
chore(deps): bump @actions/core from 1.2.6 to 1.2.7
2021-04-14 08:45:48 -06:00
dependabot[bot]
17d6a4b01b chore(deps): bump @actions/core from 1.2.6 to 1.2.7
Bumps [@actions/core](https://github.com/actions/toolkit/tree/HEAD/packages/core) from 1.2.6 to 1.2.7.
- [Release notes](https://github.com/actions/toolkit/releases)
- [Changelog](https://github.com/actions/toolkit/blob/main/packages/core/RELEASES.md)
- [Commits](https://github.com/actions/toolkit/commits/HEAD/packages/core)

Signed-off-by: dependabot[bot] <support@github.com>
2021-04-14 05:51:16 +00:00
Bret
f5e446cd23 Merge pull request #34 from bcomnes/dependabot/github_actions/fastify/github-action-merge-dependabot-v2.0.0
chore(deps): bump fastify/github-action-merge-dependabot from v1.2.1 to v2.0.0
2021-03-15 11:26:10 -06:00
dependabot[bot]
d551e2e3dc chore(deps): bump fastify/github-action-merge-dependabot
Bumps [fastify/github-action-merge-dependabot](https://github.com/fastify/github-action-merge-dependabot) from v1.2.1 to v2.0.0.
- [Release notes](https://github.com/fastify/github-action-merge-dependabot/releases)
- [Commits](https://github.com/fastify/github-action-merge-dependabot/compare/v1.2.1...a8beb6aa8ba6b9ccaac56697e646e9db994680b5)

Signed-off-by: dependabot[bot] <support@github.com>
2021-03-15 06:59:23 +00:00
dependabot[bot]
1f6ee0a605 chore(deps): bump fastify/github-action-merge-dependabot (#33)
Bumps [fastify/github-action-merge-dependabot](https://github.com/fastify/github-action-merge-dependabot) from v1.2.0 to v1.2.1.
- [Release notes](https://github.com/fastify/github-action-merge-dependabot/releases)
- [Commits](https://github.com/fastify/github-action-merge-dependabot/compare/v1.2.0...afbe82ba990ac7da327bdc087b27ad62023100dc)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-05 05:51:40 +00:00
Bret
3d49a264a5 Merge pull request #32 from bcomnes/dependabot/github_actions/fastify/github-action-merge-dependabot-v1.2.0
chore(deps): bump fastify/github-action-merge-dependabot from v1.1.1 to v1.2.0
2021-03-04 12:23:42 -07:00
dependabot[bot]
87f22c65f9 chore(deps): bump fastify/github-action-merge-dependabot
Bumps [fastify/github-action-merge-dependabot](https://github.com/fastify/github-action-merge-dependabot) from v1.1.1 to v1.2.0.
- [Release notes](https://github.com/fastify/github-action-merge-dependabot/releases)
- [Commits](https://github.com/fastify/github-action-merge-dependabot/compare/v1.1.1...8afc7f5b549c5942621ba71249f472dc3ba5c4ad)

Signed-off-by: dependabot[bot] <support@github.com>
2021-03-04 05:47:12 +00:00
dependabot[bot]
47edf7607e chore(deps): bump actions/setup-node from v2.1.4 to v2.1.5 (#31)
Bumps [actions/setup-node](https://github.com/actions/setup-node) from v2.1.4 to v2.1.5.
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](https://github.com/actions/setup-node/compare/v2.1.4...46071b5c7a2e0c34e49c3cb8a0e792e86e18d5ea)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-02-23 05:49:45 +00:00
Bret Comnes
c51b62c31b 1.1.0 2021-01-17 14:16:14 -07:00
Bret Comnes
7c7e9080c0 fix site static glob 2021-01-17 14:14:08 -07:00
Bret Comnes
b2793d2827 clean up 2021-01-17 14:08:36 -07:00
Bret Comnes
cadbbff700 Add a protected_files input that accepts a minimatch glob 2021-01-17 14:05:12 -07:00
Bret Comnes
15d3299d41 1.0.17 2021-01-17 11:15:40 -07:00
Bret Comnes
64c177bb7c Use standard breaking change identifier 2021-01-17 11:15:32 -07:00
Bret
b0315b3ae6 Merge pull request #30 from bcomnes/fix-large-deploys
Fix problems with large deploys by updating to async-neocities 2.0.0
2021-01-17 11:13:07 -07:00
Bret Comnes
c1d930633a Fix problems with large deploys by updating to async-neocities 2.0.0 2021-01-17 11:11:11 -07:00
Bret
606f4dafbe Merge pull request #29 from victoriadrake/patch-2
Adding Neofeed!
2021-01-12 20:27:37 -07:00
Victoria Drake
96bb73cc55 Adding Neofeed!
Adding a link to my project that uses this action, as requested!
2021-01-12 18:57:33 -05:00
bcomnes
fcce66f4d9 1.0.16 2021-01-04 16:00:20 +00:00
Bret
eb27830b09 Merge pull request #27 from bcomnes/dependabot/npm_and_yarn/ms-2.1.3
chore(deps): bump ms from 2.1.2 to 2.1.3
2021-01-04 08:59:29 -07:00
dependabot[bot]
eedc025255 chore(deps): bump ms from 2.1.2 to 2.1.3
Bumps [ms](https://github.com/vercel/ms) from 2.1.2 to 2.1.3.
- [Release notes](https://github.com/vercel/ms/releases)
- [Commits](https://github.com/vercel/ms/compare/2.1.2...2.1.3)

Signed-off-by: dependabot[bot] <support@github.com>
2021-01-04 07:37:12 +00:00
Bret
362544ea65 Update README.md 2021-01-03 15:54:56 -07:00
11 changed files with 2479 additions and 1261 deletions

View File

@@ -11,21 +11,20 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v2.3.4
# 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@v2.1.4
uses: actions/setup-node@v2.4.0
with:
node-version: 12
- name: Install deps and build
run: |
npm i
npm run build
node-version: 15
- run: npm i
- run: npm run build
# When the dist_dir is ready, deploy it to neocities
- name: Deploy to neocities
uses: bcomnes/deploy-to-neocities@master # dont use master in production
with:
api_token: ${{ secrets.NEOCITIES_API_TOKEN }}
cleanup: false
cleanup: true
dist_dir: public
protected_files: 'dropbox/*'

View File

@@ -14,11 +14,11 @@ jobs:
version_and_release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2.3.2
- uses: actions/checkout@v2.3.4
with:
# fetch full history so things like auto-changelog work properly
fetch-depth: 0
- uses: actions/setup-node@v2.1.4
- uses: actions/setup-node@v2.4.0
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

@@ -9,24 +9,22 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
node: [12]
node: [15]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v2.3.4
- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v2.1.4
uses: actions/setup-node@v2.4.0
with:
node-version: ${{ matrix.node }}
- name: npm install && npm test
run: |
npm i
npm test
- run: npm i
- run: npm test
automerge:
needs: test
runs-on: ubuntu-latest
steps:
- uses: fastify/github-action-merge-dependabot@v1.1.1
- uses: fastify/github-action-merge-dependabot@v2.4.0
if: ${{ github.actor == 'dependabot[bot]' && github.event_name == 'pull_request' && contains(github.head_ref, 'dependabot/github_actions') }}
with:
github-token: ${{secrets.github_token}}

17
.vscode/launch.json vendored
View File

@@ -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"
}
]
}

View File

@@ -7,7 +7,65 @@ 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.0.15](https://github.com/bcomnes/deploy-to-neocities/compare/v1.0.14...v1.0.15)
## [v1.1.1](https://github.com/bcomnes/deploy-to-neocities/compare/v1.1.0...v1.1.1)
### 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
- Fix problems with large deploys by updating to async-neocities 2.0.0 [`#30`](https://github.com/bcomnes/deploy-to-neocities/pull/30)
- Adding Neofeed! [`#29`](https://github.com/bcomnes/deploy-to-neocities/pull/29)
### Commits
- Use standard breaking change identifier [`64c177b`](https://github.com/bcomnes/deploy-to-neocities/commit/64c177bb7cb6c7cc33e53c6198218e02be928a61)
## [v1.0.16](https://github.com/bcomnes/deploy-to-neocities/compare/v1.0.15...v1.0.16) - 2021-01-04
### Merged
- chore(deps): bump ms from 2.1.2 to 2.1.3 [`#27`](https://github.com/bcomnes/deploy-to-neocities/pull/27)
### Commits
- Update README.md [`362544e`](https://github.com/bcomnes/deploy-to-neocities/commit/362544ea6507553a7155f083e222c502f1863663)
## [v1.0.15](https://github.com/bcomnes/deploy-to-neocities/compare/v1.0.14...v1.0.15) - 2021-01-03
### Merged

View File

@@ -7,7 +7,7 @@
<center><img src="static/logo.png"></center>
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.
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.
## Usage
@@ -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.
- `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`.
- `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
@@ -108,11 +109,27 @@ 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))
- 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))
- [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
- ...PR your site when you set it up!
## See also
@@ -122,6 +139,10 @@ None.
- [neocities/neocities-node](https://github.com/neocities/neocities-node): Official Node API
- [jonchang/deploy-neocities](https://github.com/jonchang/deploy-neocities): An alternative docker + official ruby client based action similar to this one.
## CHANGELOG
See [changelog.md](CHANGELOG.md)
[qs]: https://ghub.io/qs
[nf]: https://ghub.io/node-fetch
[fd]: https://ghub.io/form-data

View File

@@ -15,6 +15,9 @@ inputs:
description: Delete orphaned files on neocities that don't exist in distDir
default: false
required: true
protected_files:
description: A glob string that prevents matched files from ever being deleted.
required: false
runs:
using: 'node12'
main: 'dist/index.js'

3573
dist/index.js vendored

File diff suppressed because one or more lines are too long

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View File

@@ -5,6 +5,7 @@ const path = require('path')
const ms = require('ms')
const assert = require('webassert').default
const fsp = require('fs').promises
const minimatch = require('minimatch')
let cleanup
@@ -12,6 +13,7 @@ async function doDeploy () {
const token = core.getInput('api_token')
const distDir = path.join(process.cwd(), core.getInput('dist_dir'))
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"')
const stat = await fsp.stat(distDir)
@@ -19,15 +21,23 @@ async function doDeploy () {
const client = new Neocities(token)
const stats = await client.deploy(distDir, {
const deployOpts = {
cleanup,
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(` 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)
}
}
doDeploy().catch(err => {

View File

@@ -1,15 +1,16 @@
{
"name": "deploy-to-neocities",
"description": "Github Action to deplpoy a folder to Neocities.org",
"version": "1.0.15",
"version": "1.1.1",
"author": "Bret Comnes <bcomnes@gmail.com> (https://bret.io/)",
"bugs": {
"url": "https://github.com/bcomnes/deploy-to-neocities/issues"
},
"dependencies": {
"@actions/core": "1.2.6",
"async-neocities": "1.1.7",
"ms": "2.1.2",
"@actions/core": "1.5.0",
"async-neocities": "2.1.1",
"minimatch": "^3.0.4",
"ms": "2.1.3",
"webassert": "3.0.2"
},
"devDependencies": {
@@ -18,7 +19,7 @@
"budo": "^11.6.3",
"cpx2": "^3.0.0",
"dependency-check": "^4.1.0",
"gh-release": "^4.0.0",
"gh-release": "^6.0.0",
"npm-run-all": "^4.1.5",
"sitedown": "^5.0.0",
"standard": "^16.0.0"
@@ -36,7 +37,7 @@
"build": "npm run clean && run-p build:*",
"build:action": "rm -rf dist && ncc build index.js -o dist -s",
"build:md": "sitedown . -b public -l layout.html",
"build:static": "cpx './**/*.{png,ico}' public",
"build:static": "cpx './!(node_modules)**/*.{png,ico}' public",
"clean": "rimraf public && mkdirp public",
"release": "git push --follow-tags && gh-release -y",
"start": "npm run watch",
@@ -45,7 +46,7 @@
"test:standard": "standard",
"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:' && 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:js": "budo --dir public --live --open",
"watch:md": "npm run build:md -- -w",