Skip to content

Commit

Permalink
Refactor github workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
mcpride committed May 3, 2023
1 parent dc6ce72 commit fedb5e9
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,18 @@ name: CI

on:
push:
branches: [ "main" ]
branches:
- "main"
tags:
- "McPride.Markdig*-v[0-9]+.[0-9]+.[0-9]+"
- "McPride.Markdig*-v[0-9]+.[0-9]+.[0-9]+-alpha[0-9]+.[0-9]+"
- "McPride.Markdig*-v[0-9]+.[0-9]+.[0-9]+-beta[0-9]+.[0-9]+"
- "McPride.Markdig*-v[0-9]+.[0-9]+.[0-9]+-rc[0-9]+.[0-9]+"
- "McPride.Markdig*-v[0-9]+.[0-9]+.[0-9]+-preview[0-9]+.[0-9]+"
- "McPride.Markdig*-v[0-9]+.[0-9]+.[0-9]+-prerelease[0-9]+.[0-9]+"
- "McPride.Markdig*-v[0-9]+.[0-9]+.[0-9]+-pre[0-9]+.[0-9]+"
pull_request:
branches: [ "main" ]
tags:
- "McPride.Markdig*-v[0-9]+.[0-9]+.[0-9]+"
- "McPride.Markdig*-v[0-9]+.[0-9]+.[0-9]+-alpha[0-9]+.[0-9]+"
- "McPride.Markdig*-v[0-9]+.[0-9]+.[0-9]+-beta[0-9]+.[0-9]+"
- "McPride.Markdig*-v[0-9]+.[0-9]+.[0-9]+-rc[0-9]+.[0-9]+"
- "McPride.Markdig*-v[0-9]+.[0-9]+.[0-9]+-preview[0-9]+.[0-9]+"
- "McPride.Markdig*-v[0-9]+.[0-9]+.[0-9]+-prerelease[0-9]+.[0-9]+"
- "McPride.Markdig*-v[0-9]+.[0-9]+.[0-9]+-pre[0-9]+.[0-9]+"

jobs:
test:
Expand Down Expand Up @@ -50,7 +51,7 @@ jobs:
- name: Write to Job Summary
run: cat code-coverage-results.md >> $GITHUB_STEP_SUMMARY
release:
if: github.event_name == 'tags'
if: startsWith(github.event.ref, 'refs/tags/')
needs: test
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit fedb5e9

Please sign in to comment.