Skip to content

Commit

Permalink
Trigger environment build on tags
Browse files Browse the repository at this point in the history
Signed-off-by: Brend Smits <[email protected]>
  • Loading branch information
Brend-Smits committed Nov 26, 2021
1 parent be76c5f commit 97face3
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,8 @@ name: Create environment

on:
push:
branches:
- main
paths:
- Action/Dockerfile
- Action/*
- .github/workflows/environment.yml
tags:
- v*
workflow_dispatch:

jobs:
Expand Down
14 changes: 12 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,15 @@ gh-release: ## Creates a new release by creating a new tag and pushing it - Exam
@git commit -s -m "Bump $(OLD_VERSION) to $(NEW_VERSION) for release"
@git tag -sam "$(DESCRIPTION)" $(NEW_VERSION)
@git push origin $(NEW_VERSION)
@git stash pop
@gh release create $(NEW_VERSION) --draft --title "$(DESCRIPTION)"
@gh release create $(NEW_VERSION) --draft --title "$(DESCRIPTION)"
@echo
@echo ATTENTION: MANUAL ACTION REQUIRED!! -- Wait for the release workflow to finish
@echo
@echo Check status here https://github.com/philips-software/post-to-medium-action/actions/workflows/environment.yml
@echo
@echo Once finished, push the main branch using 'git push'
@echo
@echo Visit https://github.com/philips-software/post-to-medium-action/releases
@echo Edit the release and save it to publish to GitHub Marketplace.
@echo
@git stash pop

0 comments on commit 97face3

Please sign in to comment.