How do I use this action? #60
-
This is my first time using actions and I just can't figure it out, as much as I update my repo, no change is reflected on my neocities site. How do I know if the action is even triggering? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Hey @Woolton sorry I can't seem to see that link, is your woolneocities repo private? Basically, in any repo on GitHub, you create a folder in your default branch (master or main depending on your setting) with this path:
(so, the Then create an action yml file, it can be called whatever you want. The following link is an example action called Then you need to set a GitHub action secret in your repository settings called Then the action will work whenever you push to your default branch! You can see previous runs of this example here: https://github.com/bcomnes/mine.css/actions Read through that action and it mostly self describes:
If you make that repo public, I can maybe see what the issue is. |
Beta Was this translation helpful? Give feedback.
-
I'm having an issue as well. (I assume similar). The github action runs but when it gets to the deploying to neocities part it seems to be skipping that (see image below). I have the API key set as a action secret and can't figure out why it's not updating. I've made my repo public: https://github.com/plainoldcheese/plainoldcheese.neocities.org name: 🐈 Deploy to neocities
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: 🖥️Deploy to Neocities
uses: bcomnes/deploy-to-neocities@v1
if: ${{ env.NEOCITIES_API_TOKEN }}
with:
api_token: ${{ secrets.NEOCITIES_API_TOKEN }}
cleanup: true
dist_dir: public |
Beta Was this translation helpful? Give feedback.
I figured it out. it was this line causing it to skip
after deleting that i just needed to remove the font files and other stuff that is limited to the paid neocities accounts and then it worked. tnx ✨