Collection of handy GitHub actions.
Polar: strip paywall
When publishing articles with paywalled snippets (as benefit for paying subscribers), this action will remove them after X days since publication.
jobs:
PolarStripPaywalls:
timeout-minutes: 15
runs-on: ubuntu-22.04
steps:
- name: StripIt
uses: eval/actions/polar-strip-paywall@main
with:
org: your-org
days-since-publish: 7
env:
POLAR_API_TOKEN: ${{ secrets.POLAR_API_TOKEN }}
See also this dogfooding workflow.
See CLI documentation.
Sponsor me if this action provided value 🙏🏻
Polar: tag posts
Inserts tags and lists articles by tag. Example:
- Tag a post
Insert<!-- POLAR-TAGS tags="tag1, some other tag" -->
in a post.
NOTE: Make sure to use double quotes even when having one tag. - Create a post listing all tags
...insert<!-- POLAR-TAGS-LIST -->
and publish. - Run the following job
jobs:
PolarTags:
timeout-minutes: 15
runs-on: ubuntu-22.04
steps:
- name: Update tag-snippets
uses: eval/actions/polar-tags@main
with:
org-slug: your-org
org-id: the-polar-uuid
env:
POLAR_API_TOKEN: ${{ secrets.POLAR_API_TOKEN }}
See also this dogfooding workflow.
See CLI documentation.
Sponsor me if this action provided value 🙏🏻