Skip to content

testing ruby

testing ruby #9

Workflow file for this run

name: publish
on: [push]
permissions:
contents: read
pages: write
id-token: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: install pug-cli & build
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: bundle exec rake
- run: gem install neocities
- name: upload github pages artifact
uses: actions/upload-pages-artifact@v1
with:
path: ./dist
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: deploy to github pages
id: deployment
uses: actions/deploy-pages@v1