Skip to content

Release Workflow

Release Workflow #9

Workflow file for this run

name: Release Workflow
on:
workflow_dispatch:
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dart-lang/[email protected]
- name: Verify GitHub CLI installation
run: gh --version
- name: Get Version from pubspec.yaml
run: echo "::set-env name=PACKAGE_VERSION::$(dart get_version.dart)"
- name: Build Executable
run: dart compile exe bin/git_log_markdown_formatter.dart -o glmf
- name: Upload Executable Artifact
uses: actions/upload-artifact@v2
with:
name: glmf
path: glmf
- name: Publish Release
run: |
RELEASE_VERSION=$(dart get_version.dart)
gh release create $RELEASE_VERSION \
dist/my-binary.zip \
-t "Release $RELEASE_VERSION" \
-n "Release $RELEASE_VERSION"
- name: Create Git Tag
run: |
RELEASE_VERSION=$(dart get_version.dart)
git tag $RELEASE_VERSION && git push origin $RELEASE_VERSION