You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Copy file name to clipboardExpand all lines: README.md
+10-3Lines changed: 10 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,6 +10,8 @@
10
10
11
11
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.
12
12
13
+
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.
14
+
13
15
## Usage
14
16
15
17
```yaml
@@ -30,23 +32,26 @@ jobs:
30
32
runs-on: ubuntu-latest
31
33
32
34
steps:
33
-
- uses: actions/checkout@v3
35
+
- uses: actions/checkout@v4
34
36
# Set up any tools and build steps here
35
37
# This example uses a Node.js toolchain to build a site
36
38
- name: Use Node.js
37
-
uses: actions/setup-node@v3
39
+
uses: actions/setup-node@v4
38
40
with:
39
41
node-version: lts/*
42
+
# If you have a different build process, replace this with your own build steps
40
43
- name: Install deps and build
41
44
run: |
42
45
npm i
43
46
npm run build
44
47
# When the dist_dir is ready, deploy it to neocities
45
48
- name: Deploy to neocities
46
-
uses: bcomnes/deploy-to-neocities@v2
49
+
uses: bcomnes/deploy-to-neocities@v3
47
50
with:
48
51
api_token: ${{ secrets.NEOCITIES_API_TOKEN }}
49
52
cleanup: false
53
+
neocities_supporter: false # set this to true if you have a supporter account and want to bypass unsuported files filter.
54
+
preview_before_deploy: true # print a deployment plan prior to waiting for files to upload.
50
55
dist_dir: public
51
56
```
52
57
@@ -73,7 +78,9 @@ You most likely only want to run this on the `master` branch so that only change
73
78
74
79
- `api_token` (**REQUIRED**): The API token for your [Neocities][nc] website to deploy to.
75
80
- `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.
81
+
- `neocoties_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).
76
82
- `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`.
83
+
- `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`.
77
84
- `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.
0 commit comments