-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (27 loc) · 952 Bytes
/
release.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: Release Workflow
on:
workflow_dispatch:
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dart-lang/setup-dart@latest
- uses: actions/upload-artifact@v2
- uses: actions/setup-gh@latest
- 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
with:
name: glmf
path: glmf
- name: Publish Release
run: |
gh release create v${{ env.PACKAGE_VERSION }} \
dist/my-binary.zip \
-t "Release v${{ env.PACKAGE_VERSION }}" \
-n "$(cat RELEASE_NOTES.md)"
- name: Create Git Tag
run: git tag v${{ env.PACKAGE_VERSION }} && git push origin v${{ env.PACKAGE_VERSION }}