Skip to content

Commit

Permalink
Action for publishing releases (#283)
Browse files Browse the repository at this point in the history
  • Loading branch information
GroovinChip committed Jul 10, 2022
1 parent 77d7c0e commit a4f8fc0
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!--
Add a concise description of what this PR is changing or adding, and why. Consider including before/after screenshots.
Consider mentioninig issues related to this pull request
Consider mentioning issues related to this pull request
-->

Expand Down
27 changes: 27 additions & 0 deletions .github/workflows/stable_release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Create Stable Release
on:
push:
branches:
- stable

jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Get Package Version
id: package-version
uses: NiklasLehnfeld/flutter-version-number-action@v1
- name: Create a Stable Release
id: create-release
uses: actions/github-script@v6
with:
script: |
github.rest.repos.createRelease({
owner: "GroovinChip",
repo: "macos_ui",
name: "Version ${{ steps.package-version.outputs.version-number }}",
tag_name: "${{ steps.package-version.outputs.version-number }}",
generate_release_notes: true,
})

0 comments on commit a4f8fc0

Please sign in to comment.