Skip to content

Commit

Permalink
Test workflow.
Browse files Browse the repository at this point in the history
  • Loading branch information
tamere-allo-peter committed May 4, 2022
1 parent e1df09d commit abe13c1
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/publish_gh.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,15 @@
name: Publish a new release on GitHub

on: # yamllint disable-line rule:truthy
pull_request:
push:
branches: [main]
tags: '*.*.*'
types: [closed]

jobs:
new-gh-release:
name: Publish a new GitHub release
# We publish only on merge and if tagged
if: startsWith(github.ref, 'refs/tags') && github.event.pull_request.merged
# We publish only if tagged
if: startsWith(github.ref, 'refs/tags')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand Down

0 comments on commit abe13c1

Please sign in to comment.