mirror of
https://github.com/bcomnes/deploy-to-neocities.git
synced 2026-03-29 01:31:35 +00:00
Compare commits
8 Commits
v3.0.2
...
2eafa119db
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2eafa119db | ||
|
|
136098ad51 | ||
|
|
5761b44f4d | ||
|
|
e062c69fd8 | ||
|
|
f0b7afe72c | ||
|
|
6440dab52a | ||
|
|
70b264bcb3 | ||
|
|
75401fb61d |
@@ -32,9 +32,11 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
# The checkout step copies your repo into the action runner. Important!
|
||||
- uses: actions/checkout@v4
|
||||
# Set up any tools and build steps here
|
||||
# This example uses a Node.js toolchain to build a site
|
||||
# If you don't need Node.js to build your site, you can omit this.
|
||||
- name: Use Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
@@ -45,6 +47,7 @@ jobs:
|
||||
npm i
|
||||
npm run build
|
||||
# When the dist_dir is ready, deploy it to neocities
|
||||
# Here we deploy the folder named `public`
|
||||
- name: Deploy to neocities
|
||||
uses: bcomnes/deploy-to-neocities@v3
|
||||
with:
|
||||
@@ -66,7 +69,7 @@ You'll need the API token for your site. Go to:
|
||||
https://neocities.org/settings/{{your-sitename}}#api_key
|
||||
```
|
||||
|
||||
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.
|
||||
Retreive your site's API token from Neocities. 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. The setting (as of writing) lives in Repository > Settings > Security > Secrets and Variables > Actions > Repository secrets.
|
||||
|
||||
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.
|
||||
|
||||
|
||||
@@ -17,10 +17,10 @@
|
||||
"auto-changelog": "^2.0.0",
|
||||
"gh-release": "^7.0.0",
|
||||
"npm-run-all2": "^7.0.0",
|
||||
"neostandard": "^0.11.8",
|
||||
"neostandard": "^0.12.0",
|
||||
"c8": "^10.0.0",
|
||||
"esbuild": "~0.24.0",
|
||||
"typescript": "~5.7.2"
|
||||
"esbuild": "~0.25.0",
|
||||
"typescript": "~5.8.2"
|
||||
},
|
||||
"homepage": "https://github.com/bcomnes/deploy-to-neocities#readme",
|
||||
"keywords": [],
|
||||
|
||||
Reference in New Issue
Block a user