Skip to content

Update README.md

Update README.md #17

Workflow file for this run

name: Deploy to Neocities
# only run on changes to master
on:
push:
branches:
- master # change to your branch name if different. (ie. main)
concurrency: # prevent concurrent deploys doing strange things
group: deploy-to-neocities
cancel-in-progress: true
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout the repository code
uses: actions/checkout@v3
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: '18' # if the build is throwing node errors, change this to the latest version that is compatible with Astro/your SSG
- name: Install dependencies and build site
run: |
npm install
npm run build
# When the dist folder is ready, deploy it to neocities
- name: Deploy to Neocities
uses: bcomnes/deploy-to-neocities@v1
with:
api_token: ${{ secrets.NEOCITIES_API_TOKEN }}
cleanup: true
dist_dir: dist
#- name: Push changes to GitHub
# run: |
# git config user.email "YOUR_EMAIL_HERE"
# git config user.name "YOUR_USERNAME_HERE"
# git add .
# git commit --allow-empty -m "actions: deploy + commit"
# git push
## uncomment this block if you want to push commits to neocities *and* your github repo
## see the README "optional" step for more information