/actions

Light, sound áaand action! 🏎️

Primary LanguageClojureMIT LicenseMIT

actions

Collection of handy GitHub actions.

Subscribe on Polar

Usage

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:

Screenshot 2024-03-06 at 11 10 53

Usage

  1. 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.
  2. Create a post listing all tags
    ...insert <!-- POLAR-TAGS-LIST --> and publish.
  3. 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 🙏🏻