I GIVE UP. I
did try to read the instructions and find existing code examples to study, but, GAH!! I don't understand anything at all. Please help me :begging: :begging: :begging:
First, to preface: I have absolutely no knowledge regarding GitHub or Git or any programming languages whatsoever!! All I have stored in my brain is some very basic HTML and CSS.
Anyway, for a variety of reasons, I would rather not use the native Neocities interface to manage my files, and so thought about using the GitHub Action I've heard much about instead. I followed the instructions
here and:
✓ Created a .github/workflows/deploy.yml with the following content:
name: Build site
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: make
- if: ${{ success() && github.ref == 'refs/heads/main' }}
id: deploy
continue-on-error: true
uses: bcomnes/deploy-to-neocities@v1
with:
api_token: ${{ secrets.NEOCITIES_API_KEY }}
dist_dir: public
cleanup: true
- name: Deploy to Neocities fallback
if: ${{ steps.deploy.outcome == 'failure' && github.ref == 'refs/heads/main' }}
uses: jonchang/deploy-neocities@master
with:
key: ${{ secrets.NEOCITIES_API_KEY }}
dir: public
clean: true
✓ Created a secret NEOCITIES_API_KEY with my API key
✓ Added `public` to .gitignore
✓ Put everything I currently have on my site in the `public` folder
All of the above was done in the `main` branch.
But here's the results...
And I have no idea where I did wrong
So I figured rather than fumbling about as a complete know-nothing, it's better to just ask, since it seems a lot of people use this.
Thank you in advance!