Skip to content

Commit

Permalink
testing neocities
Browse files Browse the repository at this point in the history
  • Loading branch information
Ragzouken committed May 25, 2024
1 parent a1fac8b commit 154ef04
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,23 +13,24 @@ jobs:

steps:
- uses: actions/checkout@v4
- name: install pug-cli & build
- name: install node
uses: actions/setup-node@v4
with:
node-version: '20.x'
- run: npm install pug-cli -g
- run: pug --pretty -o dist --basedir src -- src/index.pug
- name: install ruby & neocities
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.3' # Not needed with a .ruby-version file
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- run: gem install neocities
- run: printf "candle\n$NEOCITIES" | neocities upload -d bipsi .\dist\index.html
- name: install pug & build
run: |
npm install pug-cli -g
pug --pretty -o site/bipsi --basedir src -- src/index.pug
- name: upload github pages artifact
uses: actions/upload-pages-artifact@v1
with:
path: ./dist
path: ./site/bipsi
- name: Deploy to neocities
uses: bcomnes/deploy-to-neocities@v2
with:
api_token: ${{ secrets.NEOCITIES_API_TOKEN }}
cleanup: false
dist_dir: site

deploy:
environment:
Expand Down

0 comments on commit 154ef04

Please sign in to comment.