Skip to content

Set posts pubDate to 18:00 in rss feed items #95

Set posts pubDate to 18:00 in rss feed items

Set posts pubDate to 18:00 in rss feed items #95

Workflow file for this run

name: Test and Build
on:
push:
branches-ignore:
- master
pull_request:
types: [opened, ready_for_review, review_requested]
pull_request_review:
types: [submitted]
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4.1.1
- name: Install clojure tools
uses: DeLaGuardo/setup-clojure@12.1
with:
cli: latest
- name: Verify code base format
run: clojure -T:cljfmt check
- name: Run the clj tests
run: clojure -M:server/test
- name: Run the cljs tests
run: clojure -M:web/test-headless
- name: Build main.js
if: github.event_name == 'push' || github.event.action == 'review_requested' || github.event.action == 'ready_for_review'
run: clojure -T:build js-bundle
- name: Generate RSS feed
if: github.event_name == 'push' || github.event.action == 'review_requested' || github.event.action == 'ready_for_review'
run: clojure -T:build rss-feed
- name: Commit js bundle and rss feed
if: github.event_name == 'push' || github.event.review.state == 'approved'
uses: EndBug/add-and-commit@v9
with:
add: |
resources/public/main.js
resources/public/blog/rss/clojure-feed.xml
committer_name: GitHub Action
default_author: github_actions
message: "Compile the cljs to the js bundle and update RSS feed"