From 154ef04f83a3462e51615aaca44a55519da94116 Mon Sep 17 00:00:00 2001 From: candle Date: Sat, 25 May 2024 14:00:42 +0100 Subject: [PATCH] testing neocities --- .github/workflows/publish.yaml | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 1f00c92..268c890 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -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: