Skip to content

Commit

Permalink
bbc workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
jpw1991 committed Aug 2, 2023
1 parent 09d6be2 commit 0167580
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/generate_bbcode.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Generate BBCode

on:
push:
branches:
- master

env:
outf: README.bbc
readmef: README.md

jobs:
convert:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Setup .NET Core
uses: actions/setup-dotnet@v3
with:
dotnet-version: '6.0.x'

- name: Install markdown_to_bbcodenm tool
run: dotnet tool install -g Converter.MarkdownToBBCodeNM.Tool

- name: Convert README.md to README.bbc
run: markdown_to_bbcodenm -i "README.md" -o "${{ env.outf }}"

- name: Archive README.bbc
uses: actions/upload-artifact@v2
with:
name: bbcode-artifact
path: ${{ env.outf }}

0 comments on commit 0167580

Please sign in to comment.