Compare commits

..

55 Commits

Author SHA1 Message Date
bcomnes
f942ee85ee 1.0.15 2021-01-03 22:49:04 +00:00
Bret Comnes
06656fc11f Print file stats when things error. 2021-01-03 15:47:32 -07:00
Bret
e3a5a21e0f Merge pull request #26 from victoriadrake/patch-1
Clarify usage instructions
2021-01-03 14:49:55 -07:00
Victoria Drake
98ed70e10b Clarify usage instructions
Hi Bret! While setting up I found the instructions just a teensy bit difficult to follow. Here are some changes that might make it easier for new folks to get started.
2021-01-03 16:12:00 -05:00
dependabot[bot]
4651b4e6a6 chore(deps): bump actions/setup-node from v2.1.3 to v2.1.4 (#25)
Bumps [actions/setup-node](https://github.com/actions/setup-node) from v2.1.3 to v2.1.4.
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](https://github.com/actions/setup-node/compare/v2.1.3...c46424eee26de4078d34105d3de3cc4992202b1e)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-12-28 22:36:08 +00:00
Bret
e95b2b3a31 Update test.yml 2020-12-28 15:34:38 -07:00
Bret
6a1edb8f7c Merge pull request #23 from bcomnes/dependabot/github_actions/actions/setup-node-v2.1.3
chore(deps): bump actions/setup-node from v2.1.2 to v2.1.3
2020-12-11 10:30:10 -07:00
Bret
b34dbdf936 Merge pull request #24 from bcomnes/dependabot/npm_and_yarn/sitedown-5.0.0
chore(deps-dev): bump sitedown from 4.0.0 to 5.0.0
2020-12-11 10:28:30 -07:00
dependabot[bot]
3e3947a94e chore(deps-dev): bump sitedown from 4.0.0 to 5.0.0
Bumps [sitedown](https://github.com/hypermodules/sitedown) from 4.0.0 to 5.0.0.
- [Release notes](https://github.com/hypermodules/sitedown/releases)
- [Changelog](https://github.com/hypermodules/sitedown/blob/master/CHANGELOG.md)
- [Commits](https://github.com/hypermodules/sitedown/compare/v4.0.0...v5.0.0)

Signed-off-by: dependabot[bot] <support@github.com>
2020-12-11 06:00:51 +00:00
dependabot[bot]
c10801ca7d chore(deps): bump actions/setup-node from v2.1.2 to v2.1.3
Bumps [actions/setup-node](https://github.com/actions/setup-node) from v2.1.2 to v2.1.3.
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](https://github.com/actions/setup-node/compare/v2.1.2...27082cecf3ff7a1742dbd5e12605f0cb59dce2d9)

Signed-off-by: dependabot[bot] <support@github.com>
2020-12-11 05:56:53 +00:00
Bret
c29ab1ac72 Merge pull request #22 from bcomnes/dependabot/npm_and_yarn/standard-16.0.0
chore(deps-dev): bump standard from 15.0.1 to 16.0.0
2020-10-30 11:09:51 -06:00
dependabot[bot]
bf078bf3d1 chore(deps-dev): bump standard from 15.0.1 to 16.0.0
Bumps [standard](https://github.com/standard/standard) from 15.0.1 to 16.0.0.
- [Release notes](https://github.com/standard/standard/releases)
- [Changelog](https://github.com/standard/standard/blob/master/CHANGELOG.md)
- [Commits](https://github.com/standard/standard/compare/v15.0.1...v16.0.0)

Signed-off-by: dependabot[bot] <support@github.com>
2020-10-29 06:29:57 +00:00
Bret
5346499faa Merge pull request #21 from bcomnes/dependabot/npm_and_yarn/standard-15.0.0
chore(deps-dev): bump standard from 14.3.4 to 15.0.0
2020-10-23 10:16:25 -06:00
dependabot[bot]
ebebe2f466 chore(deps-dev): bump standard from 14.3.4 to 15.0.0
Bumps [standard](https://github.com/standard/standard) from 14.3.4 to 15.0.0.
- [Release notes](https://github.com/standard/standard/releases)
- [Changelog](https://github.com/standard/standard/blob/master/CHANGELOG.md)
- [Commits](https://github.com/standard/standard/compare/v14.3.4...v15.0.0)

Signed-off-by: dependabot[bot] <support@github.com>
2020-10-22 06:10:25 +00:00
Bret Comnes
0a714c56e7 Merge pull request #20 from bcomnes/dependabot/github_actions/bcomnes/npm-bump-v2.0.2
chore(deps): bump bcomnes/npm-bump from v2.0.1 to v2.0.2
2020-10-05 08:46:15 -06:00
dependabot[bot]
085e43c0f6 chore(deps): bump bcomnes/npm-bump from v2.0.1 to v2.0.2
Bumps [bcomnes/npm-bump](https://github.com/bcomnes/npm-bump) from v2.0.1 to v2.0.2.
- [Release notes](https://github.com/bcomnes/npm-bump/releases)
- [Changelog](https://github.com/bcomnes/npm-bump/blob/master/CHANGELOG.md)
- [Commits](https://github.com/bcomnes/npm-bump/compare/v2.0.1...a1625174ce3bf8f0cb3420b237311972445b5400)

Signed-off-by: dependabot[bot] <support@github.com>
2020-10-05 06:50:34 +00:00
Bret Comnes
a681c7b834 Merge pull request #19 from bcomnes/dependabot/github_actions/actions/setup-node-v2.1.2
chore(deps): bump actions/setup-node from v2.1.1 to v2.1.2
2020-10-02 13:48:51 -06:00
dependabot[bot]
0e025d4443 chore(deps): bump actions/setup-node from v2.1.1 to v2.1.2
Bumps [actions/setup-node](https://github.com/actions/setup-node) from v2.1.1 to v2.1.2.
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](https://github.com/actions/setup-node/compare/v2.1.1...c6fd00ceb9747fb23ffdf72987450a2664414867)

Signed-off-by: dependabot[bot] <support@github.com>
2020-10-02 06:14:57 +00:00
Bret Comnes
0f708da077 Merge pull request #18 from bcomnes/dependabot/npm_and_yarn/actions/core-1.2.6
chore(deps): bump @actions/core from 1.2.5 to 1.2.6
2020-09-25 13:02:03 -06:00
dependabot[bot]
2f93b28470 chore(deps): bump @actions/core from 1.2.5 to 1.2.6
Bumps [@actions/core](https://github.com/actions/toolkit/tree/HEAD/packages/core) from 1.2.5 to 1.2.6.
- [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>
2020-09-24 06:30:17 +00:00
Bret Comnes
c97c0f1d29 Merge pull request #17 from bcomnes/dependabot/npm_and_yarn/cpx2-3.0.0
chore(deps-dev): bump cpx2 from 2.0.0 to 3.0.0
2020-09-21 15:11:02 -06:00
dependabot[bot]
bd95686640 chore(deps-dev): bump cpx2 from 2.0.0 to 3.0.0
Bumps [cpx2](https://github.com/bcomnes/cpx2) from 2.0.0 to 3.0.0.
- [Release notes](https://github.com/bcomnes/cpx2/releases)
- [Changelog](https://github.com/bcomnes/cpx2/blob/master/CHANGELOG.md)
- [Commits](https://github.com/bcomnes/cpx2/compare/v2.0.0...v3.0.0)

Signed-off-by: dependabot[bot] <support@github.com>
2020-09-21 06:55:27 +00:00
Bret Comnes
26e9f892dc Merge pull request #16 from bcomnes/dependabot/github_actions/bcomnes/npm-bump-v2.0.0
chore(deps): bump bcomnes/npm-bump from v1.0.5 to v2.0.0
2020-09-15 16:31:13 -07:00
Bret Comnes
44344826ee Update release.yml 2020-09-15 16:30:29 -07:00
dependabot[bot]
07e0747714 chore(deps): bump bcomnes/npm-bump from v1.0.5 to v2.0.0
Bumps [bcomnes/npm-bump](https://github.com/bcomnes/npm-bump) from v1.0.5 to v2.0.0.
- [Release notes](https://github.com/bcomnes/npm-bump/releases)
- [Changelog](https://github.com/bcomnes/npm-bump/blob/master/CHANGELOG.md)
- [Commits](https://github.com/bcomnes/npm-bump/compare/v1.0.5...11598463df22402dea88a18ff039cdc927fa22c6)

Signed-off-by: dependabot[bot] <support@github.com>
2020-09-15 06:19:53 +00:00
Bret Comnes
de4011a7a2 Merge pull request #14 from bcomnes/dependabot/github_actions/bcomnes/npm-bump-v1.0.5
chore(deps): bump bcomnes/npm-bump from v1.0.4 to v1.0.5
2020-09-14 13:56:20 -07:00
bcomnes
c465c2edba 1.0.14 2020-09-14 20:54:48 +00:00
Bret Comnes
68257ae7e3 Merge pull request #15 from bcomnes/dependabot/npm_and_yarn/gh-release-4.0.0
chore(deps-dev): bump gh-release from 3.5.0 to 4.0.0
2020-09-14 13:53:38 -07:00
dependabot[bot]
f6865eddb1 chore(deps-dev): bump gh-release from 3.5.0 to 4.0.0
Bumps [gh-release](https://github.com/hypermodules/gh-release) from 3.5.0 to 4.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/v3.5.0...v4.0.0)

Signed-off-by: dependabot[bot] <support@github.com>
2020-09-14 06:29:00 +00:00
dependabot[bot]
963a76669c chore(deps): bump bcomnes/npm-bump from v1.0.4 to v1.0.5
Bumps [bcomnes/npm-bump](https://github.com/bcomnes/npm-bump) from v1.0.4 to v1.0.5.
- [Release notes](https://github.com/bcomnes/npm-bump/releases)
- [Changelog](https://github.com/bcomnes/npm-bump/blob/master/CHANGELOG.md)
- [Commits](https://github.com/bcomnes/npm-bump/compare/v1.0.4...a0fdddee99b4bfebc0f6c0e3dd0114e556fa0228)

Signed-off-by: dependabot[bot] <support@github.com>
2020-09-14 06:19:40 +00:00
bcomnes
19f4a14056 1.0.13 2020-09-11 17:19:19 +00:00
Bret Comnes
88a58f8af5 Delete package-lock.json 2020-09-11 11:18:24 -06:00
Bret Comnes
9e5dafc00e Update .gitignore 2020-09-11 11:18:08 -06:00
bcomnes
0f7cdf6e15 1.0.12 2020-09-11 17:16:53 +00:00
Bret Comnes
0460e9fd78 Update release.yml 2020-09-11 11:15:52 -06:00
Bret Comnes
9a792306ca Create release.yml 2020-09-11 11:10:39 -06:00
Bret Comnes
86a931c560 Update release script to be automatic 2020-09-11 11:10:13 -06:00
Bret Comnes
7e75396715 Update README.md
Add link to @jonchang's deploy-neocities action to See Also section.
2020-09-08 10:34:56 -06:00
Bret Comnes
2876a7c9b2 Merge pull request #12 from bcomnes/dependabot/github_actions/actions/setup-node-v2.1.1
chore(deps): bump actions/setup-node from v1 to v2.1.1
2020-09-07 14:04:41 -06:00
Bret Comnes
2039560edd Merge pull request #13 from bcomnes/dependabot/npm_and_yarn/actions/core-1.2.5
chore(deps): bump @actions/core from 1.2.4 to 1.2.5
2020-09-07 14:03:07 -06:00
dependabot[bot]
1c4ddaed91 chore(deps): bump @actions/core from 1.2.4 to 1.2.5
Bumps [@actions/core](https://github.com/actions/toolkit/tree/HEAD/packages/core) from 1.2.4 to 1.2.5.
- [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>
2020-09-07 19:17:28 +00:00
dependabot[bot]
27ba5580e2 chore(deps): bump actions/setup-node from v1 to v2.1.1
Bumps [actions/setup-node](https://github.com/actions/setup-node) from v1 to v2.1.1.
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](https://github.com/actions/setup-node/compare/v1...321b6ccb03083caa2ad22b27dc4b45335212e824)

Signed-off-by: dependabot[bot] <support@github.com>
2020-09-07 19:10:00 +00:00
Bret Comnes
6975b43119 Create dependabot.yml 2020-09-07 13:09:38 -06:00
Bret Comnes
8b3d238de6 rebuild 2020-08-11 20:40:28 -06:00
Bret Comnes
b00151fe41 Update README.md 2020-08-08 10:54:51 -06:00
Bret Comnes
14eaced049 1.0.11 2020-08-05 13:33:45 -06:00
Bret Comnes
f638cbacda Merge pull request #11 from jonchang/patch-1
action.yml: remove invalid syntax
2020-08-05 13:31:13 -06:00
Jonathan Chang
3fb6c25a99 action.yml: remove invalid syntax
Fixes https://github.com/bcomnes/deploy-to-neocities/issues/10
2020-08-05 16:19:14 +10:00
Bret Comnes
7dce130590 Update README.md 2020-07-09 12:42:05 -06:00
Bret Comnes
bfabadd110 Update README.md 2020-06-19 12:40:04 -06:00
Bret Comnes
63006b6b6b Update README.md 2020-06-19 12:38:33 -06:00
Bret Comnes
d9da06a597 Merge branch 'fix-bug' 2020-04-30 11:26:41 -06:00
Bret Comnes
eae8102e0d 1.0.10 2020-04-30 11:26:00 -06:00
Bret Comnes
2f0de08e9d Merge pull request #9 from bcomnes/fix-bug
bug: fix import
2020-04-30 11:25:49 -06:00
Bret Comnes
5cf59d6e7f bug: fix import
Closes https://github.com/bcomnes/deploy-to-neocities/issues/8
2020-04-30 11:24:46 -06:00
13 changed files with 546 additions and 138 deletions

18
.github/dependabot.yml vendored Normal file
View File

@@ -0,0 +1,18 @@
# Basic dependabot.yml file with
# minimum configuration for two package managers
version: 2
updates:
# Enable version updates for npm
- package-ecosystem: "npm"
# Look for `package.json` and `lock` files in the `root` directory
directory: "/"
# Check the npm registry for updates every day (weekdays)
schedule:
interval: "daily"
# Enable updates to github actions
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"

View File

@@ -15,7 +15,7 @@ jobs:
# 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@v2.1.4
with:
node-version: 12
- name: Install deps and build

34
.github/workflows/release.yml vendored Normal file
View File

@@ -0,0 +1,34 @@
name: npm bump
on:
workflow_dispatch:
inputs:
newversion:
description: 'npm version (major minor patch)'
required: true
env:
node_version: 14
jobs:
version_and_release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2.3.2
with:
# fetch full history so things like auto-changelog work properly
fetch-depth: 0
- uses: actions/setup-node@v2.1.4
with:
node-version: ${{ env.node_version }}
# setting a registry enables the NODE_AUTH_TOKEN env variable where we can set an npm token. REQUIRED
registry-url: 'https://registry.npmjs.org'
- run: npm i
- run: npm test
- uses: bcomnes/npm-bump@v2.0.2
with:
git_email: bcomnes@gmail.com
git_username: ${{ github.actor }}
newversion: ${{ github.event.inputs.newversion }}
github_token: ${{ secrets.GITHUB_TOKEN }} # built in actions token. Passed tp gh-release if in use.
publish_cmd: npm run release

View File

@@ -1,6 +1,6 @@
name: tests
on: [push]
on: [push, pull_request]
jobs:
test:
@@ -14,12 +14,19 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v1
uses: actions/setup-node@v2.1.4
with:
node-version: ${{ matrix.node }}
- name: npm install && npm test
run: |
npm i
npm test
env:
CI: true
automerge:
needs: test
runs-on: ubuntu-latest
steps:
- uses: fastify/github-action-merge-dependabot@v1.1.1
if: ${{ github.actor == 'dependabot[bot]' && github.event_name == 'pull_request' && contains(github.head_ref, 'dependabot/github_actions') }}
with:
github-token: ${{secrets.github_token}}

1
.gitignore vendored
View File

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

View File

@@ -7,6 +7,78 @@ 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)
### Merged
- Clarify usage instructions [`#26`](https://github.com/bcomnes/deploy-to-neocities/pull/26)
- chore(deps): bump actions/setup-node from v2.1.3 to v2.1.4 [`#25`](https://github.com/bcomnes/deploy-to-neocities/pull/25)
- chore(deps): bump actions/setup-node from v2.1.2 to v2.1.3 [`#23`](https://github.com/bcomnes/deploy-to-neocities/pull/23)
- chore(deps-dev): bump sitedown from 4.0.0 to 5.0.0 [`#24`](https://github.com/bcomnes/deploy-to-neocities/pull/24)
- chore(deps-dev): bump standard from 15.0.1 to 16.0.0 [`#22`](https://github.com/bcomnes/deploy-to-neocities/pull/22)
- chore(deps-dev): bump standard from 14.3.4 to 15.0.0 [`#21`](https://github.com/bcomnes/deploy-to-neocities/pull/21)
- chore(deps): bump bcomnes/npm-bump from v2.0.1 to v2.0.2 [`#20`](https://github.com/bcomnes/deploy-to-neocities/pull/20)
- chore(deps): bump actions/setup-node from v2.1.1 to v2.1.2 [`#19`](https://github.com/bcomnes/deploy-to-neocities/pull/19)
- chore(deps): bump @actions/core from 1.2.5 to 1.2.6 [`#18`](https://github.com/bcomnes/deploy-to-neocities/pull/18)
- chore(deps-dev): bump cpx2 from 2.0.0 to 3.0.0 [`#17`](https://github.com/bcomnes/deploy-to-neocities/pull/17)
- chore(deps): bump bcomnes/npm-bump from v1.0.5 to v2.0.0 [`#16`](https://github.com/bcomnes/deploy-to-neocities/pull/16)
- chore(deps): bump bcomnes/npm-bump from v1.0.4 to v1.0.5 [`#14`](https://github.com/bcomnes/deploy-to-neocities/pull/14)
### Commits
- Print file stats when things error. [`06656fc`](https://github.com/bcomnes/deploy-to-neocities/commit/06656fc11f192e070e32acf845e0631d792ee424)
- Update test.yml [`e95b2b3`](https://github.com/bcomnes/deploy-to-neocities/commit/e95b2b3a311c11aa7a114d96f773013eef154f52)
- Update release.yml [`4434482`](https://github.com/bcomnes/deploy-to-neocities/commit/44344826ee59da570fa6d5ca8285cd67693cc6aa)
## [v1.0.14](https://github.com/bcomnes/deploy-to-neocities/compare/v1.0.13...v1.0.14) - 2020-09-14
### Merged
- chore(deps-dev): bump gh-release from 3.5.0 to 4.0.0 [`#15`](https://github.com/bcomnes/deploy-to-neocities/pull/15)
## [v1.0.13](https://github.com/bcomnes/deploy-to-neocities/compare/v1.0.12...v1.0.13) - 2020-09-11
### Commits
- Delete package-lock.json [`88a58f8`](https://github.com/bcomnes/deploy-to-neocities/commit/88a58f8af50d3ac41ce4e523597434adfa6fa304)
- Update .gitignore [`9e5dafc`](https://github.com/bcomnes/deploy-to-neocities/commit/9e5dafc00e3910658e768ad1de0a08512399bd51)
## [v1.0.12](https://github.com/bcomnes/deploy-to-neocities/compare/v1.0.11...v1.0.12) - 2020-09-11
### Merged
- chore(deps): bump actions/setup-node from v1 to v2.1.1 [`#12`](https://github.com/bcomnes/deploy-to-neocities/pull/12)
- chore(deps): bump @actions/core from 1.2.4 to 1.2.5 [`#13`](https://github.com/bcomnes/deploy-to-neocities/pull/13)
### Commits
- Create release.yml [`9a79230`](https://github.com/bcomnes/deploy-to-neocities/commit/9a792306ca7b0d9800de1c6e1cb995070caf67df)
- Create dependabot.yml [`6975b43`](https://github.com/bcomnes/deploy-to-neocities/commit/6975b431197241de88beb858e612dfc5c37f414f)
- Update release.yml [`0460e9f`](https://github.com/bcomnes/deploy-to-neocities/commit/0460e9fd782d26030ab102877961cfe0f0aa7b2e)
## [v1.0.11](https://github.com/bcomnes/deploy-to-neocities/compare/v1.0.10...v1.0.11) - 2020-08-05
### Merged
- action.yml: remove invalid syntax [`#11`](https://github.com/bcomnes/deploy-to-neocities/pull/11)
- bug: fix import [`#9`](https://github.com/bcomnes/deploy-to-neocities/pull/9)
### Fixed
- action.yml: remove invalid syntax [`#10`](https://github.com/bcomnes/deploy-to-neocities/issues/10)
### Commits
- Update README.md [`bfabadd`](https://github.com/bcomnes/deploy-to-neocities/commit/bfabadd110556a72b29314df1349f4efb3e1566c)
- Update README.md [`63006b6`](https://github.com/bcomnes/deploy-to-neocities/commit/63006b6b6bbb3276fd1130b23398c468196dc34b)
- Update README.md [`7dce130`](https://github.com/bcomnes/deploy-to-neocities/commit/7dce130590457fee0823c708884cb309fedc140c)
## [v1.0.10](https://github.com/bcomnes/deploy-to-neocities/compare/v1.0.9...v1.0.10) - 2020-04-30
### Fixed
- bug: fix import [`#8`](https://github.com/bcomnes/deploy-to-neocities/issues/8)
## [v1.0.9](https://github.com/bcomnes/deploy-to-neocities/compare/v1.0.8...v1.0.9) - 2020-04-30
### Merged
@@ -22,7 +94,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
- fix(package): update @actions/core to version 1.2.4 [`bc980f6`](https://github.com/bcomnes/deploy-to-neocities/commit/bc980f6378b06e225a7854b65ef9de27838eba18)
- chore(package): update auto-changelog to version 2.0.0 [`7059bca`](https://github.com/bcomnes/deploy-to-neocities/commit/7059bcae5305d0068f02b2268f76e626ff0a940a)
## [v1.0.8](https://github.com/bcomnes/deploy-to-neocities/compare/v1.0.7...v1.0.8) - 2020-03-01
## [v1.0.8](https://github.com/bcomnes/deploy-to-neocities/compare/v1.0.7...v1.0.8) - 2020-02-29
### Merged
@@ -72,19 +144,19 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
- refactor: clean up pacakge.json a bit [`7bb0bde`](https://github.com/bcomnes/deploy-to-neocities/commit/7bb0bdec75f6ec26707d036479c84b40f20f6ba8)
- docs: improve docs [`cc11705`](https://github.com/bcomnes/deploy-to-neocities/commit/cc11705059c58406f070b67a4f3456a040599ae5)
## [v1.0.2](https://github.com/bcomnes/deploy-to-neocities/compare/v1.0.1...v1.0.2) - 2020-02-18
## [v1.0.2](https://github.com/bcomnes/deploy-to-neocities/compare/v1.0.1...v1.0.2) - 2020-02-17
### Commits
- bug: fix input name [`14f0fea`](https://github.com/bcomnes/deploy-to-neocities/commit/14f0feaed2b52c65b7a9fac2a8c5437f75a3b033)
## [v1.0.1](https://github.com/bcomnes/deploy-to-neocities/compare/v1.0.0...v1.0.1) - 2020-02-18
## [v1.0.1](https://github.com/bcomnes/deploy-to-neocities/compare/v1.0.0...v1.0.1) - 2020-02-17
### Commits
- docs: typos [`91c25ab`](https://github.com/bcomnes/deploy-to-neocities/commit/91c25ab7221a139f318ed7ef4a6518d5a64debe8)
## [v1.0.0](https://github.com/bcomnes/deploy-to-neocities/compare/v0.0.11...v1.0.0) - 2020-02-18
## [v1.0.0](https://github.com/bcomnes/deploy-to-neocities/compare/v0.0.11...v1.0.0) - 2020-02-17
### Merged
@@ -144,14 +216,14 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
- refactor: Dramatically simplify logging [`bc86874`](https://github.com/bcomnes/deploy-to-neocities/commit/bc86874ede188f9c33f0b6dfd2e54b25328b1285)
## [v0.0.3](https://github.com/bcomnes/deploy-to-neocities/compare/v0.0.2...v0.0.3) - 2020-02-13
## [v0.0.3](https://github.com/bcomnes/deploy-to-neocities/compare/v0.0.2...v0.0.3) - 2020-02-12
### Commits
- Fix boolean parsing [`19246fa`](https://github.com/bcomnes/deploy-to-neocities/commit/19246fac798151a3ab80666412f72394c0615c32)
- bug: Fix reference bug in logging [`2c52eea`](https://github.com/bcomnes/deploy-to-neocities/commit/2c52eeaa2badbb1bcb3c2520e358fcc088bc3879)
## [v0.0.2](https://github.com/bcomnes/deploy-to-neocities/compare/v0.0.1...v0.0.2) - 2020-02-13
## [v0.0.2](https://github.com/bcomnes/deploy-to-neocities/compare/v0.0.1...v0.0.2) - 2020-02-12
### Commits

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).
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
@@ -48,15 +48,17 @@ jobs:
- 💻 [Example YML](.github/workflows/neocities.yml)
- 🌎 [Example Deploy](https://deploy-to-neocities.neocities.org)
Create a workflow `.yml` file in your repositories `.github/workflows` directory. An [example workflow](#example-workflow) is available below. For more information, reference the GitHub Help Documentation for [Creating a workflow file](https://help.github.com/en/articles/configuring-a-workflow#creating-a-workflow-file).
Create a workflow `.yml` file in your repository's `.github/workflows` directory. An [example workflow](#example-workflow) is available above. For more information, reference the GitHub Help Documentation for [Creating a workflow file](https://help.github.com/en/articles/configuring-a-workflow#creating-a-workflow-file).
Get your sites API token and set a [secret][sec] called `NEOCITIES_API_TOKEN`. Set the `api_token` input on your `deploy-to-neocities` action to `NEOCITIES_API_TOKEN`.
You'll need the API token for your site. Go to:
```
https://neocities.org/settings/{{sitename}}#api_key
https://neocities.org/settings/{{your-sitename}}#api_key
```
During your workflow, generate the files you want to deploy to [Neocities][nc] into a `dist_dir` directory. You can use any tools that can be installed or brought into the Github actions environment.
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.
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.
Once the build is complete, `deploy-to-neocities` will efficiently upload all new and all changed files to Neocities. Any files on Neocities that don't exist in the `dist_dir` are considered 'orphaned' files. To destructively remove these 'orphaned' files, set the `cleanup` input to `true`.
@@ -104,12 +106,21 @@ None.
- No deploy previews.
- No Github Deploys API support (yet).
## Sites using deploy-to-neocities
- 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))
- ...PR your site when you set it up!
## See also
- [async-neocities](https://ghub.io/async-neocities): diffing engine used for action.
- [Neocities API Docs](https://neocities.org/api)
- [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.
[qs]: https://ghub.io/qs
[nf]: https://ghub.io/node-fetch

View File

@@ -15,7 +15,6 @@ inputs:
description: Delete orphaned files on neocities that don't exist in distDir
default: false
required: true
outputs: # none
runs:
using: 'node12'
main: 'dist/index.js'

462
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

@@ -19,7 +19,13 @@ module.exports =
/******/ };
/******/
/******/ // Execute the module function
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
/******/ var threw = true;
/******/ try {
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
/******/ threw = false;
/******/ } finally {
/******/ if(threw) delete installedModules[moduleId];
/******/ }
/******/
/******/ // Flag the module as loaded
/******/ module.l = true;

View File

@@ -3,13 +3,15 @@ const core = require('@actions/core')
const Neocities = require('async-neocities')
const path = require('path')
const ms = require('ms')
const assert = require('webassert')
const assert = require('webassert').default
const fsp = require('fs').promises
let cleanup
async function doDeploy () {
const token = core.getInput('api_token')
const distDir = path.join(process.cwd(), core.getInput('dist_dir'))
const cleanup = JSON.parse(core.getInput('cleanup'))
cleanup = JSON.parse(core.getInput('cleanup'))
assert(typeof cleanup === 'boolean', 'Cleanup input must be a boolean "true" or "false"')
const stat = await fsp.stat(distDir)
@@ -30,5 +32,15 @@ async function doDeploy () {
doDeploy().catch(err => {
console.error(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)
})

View File

@@ -1,27 +1,27 @@
{
"name": "deploy-to-neocities",
"description": "Github Action to deplpoy a folder to Neocities.org",
"version": "1.0.9",
"version": "1.0.15",
"author": "Bret Comnes <bcomnes@gmail.com> (https://bret.io/)",
"bugs": {
"url": "https://github.com/bcomnes/deploy-to-neocities/issues"
},
"dependencies": {
"@actions/core": "1.2.4",
"async-neocities": "1.1.6",
"ms": "^2.1.2",
"webassert": "^3.0.2"
"@actions/core": "1.2.6",
"async-neocities": "1.1.7",
"ms": "2.1.2",
"webassert": "3.0.2"
},
"devDependencies": {
"auto-changelog": "^2.0.0",
"@zeit/ncc": "^0.22.0",
"budo": "^11.6.3",
"cpx2": "^2.0.0",
"cpx2": "^3.0.0",
"dependency-check": "^4.1.0",
"gh-release": "^3.5.0",
"gh-release": "^4.0.0",
"npm-run-all": "^4.1.5",
"sitedown": "^4.0.0",
"standard": "^14.3.1"
"sitedown": "^5.0.0",
"standard": "^16.0.0"
},
"homepage": "https://github.com/bcomnes/deploy-to-neocities#readme",
"keywords": [],
@@ -38,7 +38,7 @@
"build:md": "sitedown . -b public -l layout.html",
"build:static": "cpx './**/*.{png,ico}' public",
"clean": "rimraf public && mkdirp public",
"release": "git push --follow-tags && gh-release",
"release": "git push --follow-tags && gh-release -y",
"start": "npm run watch",
"test": "run-s test:*",
"test:deps": "dependency-check . --no-dev --no-peer",