Skip to content

Instantly share code, notes, and snippets.

@alsmola
Created July 11, 2021 17:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alsmola/287bcef073a572ef81cb4387531f1319 to your computer and use it in GitHub Desktop.
Save alsmola/287bcef073a572ef81cb4387531f1319 to your computer and use it in GitHub Desktop.
# CircleCI configuration to publish markdown files to Confluence
version: 2
jobs:
build:
branches:
only:
- master
docker:
- image: circleci/golang:1.13.11
steps:
- checkout
- run:
command: |
curl -LO https://github.com/justmiles/go-markdown2confluence/releases/download/v3.1.1/go-markdown2confluence_3.1.1_linux_x86_64.tar.gz
sudo tar -xzvf go-markdown2confluence_3.1.1_linux_x86_64.tar.gz markdown2confluence
./markdown2confluence --modified-since 30 --space "Space Name" --parent "Parent Page Name" -t "Page Title" markdown_file_name.md
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment