-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (35 loc) · 1.06 KB
/
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
36
37
38
39
40
41
42
43
44
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: Build Executable
run: |
dart pub get
dart update_meta.dart
dart compile exe bin/git_log_markdown_formatter.dart -o glmf
zip glmf.zip glmf
- name: Upload Executable Artifact
uses: actions/upload-artifact@v2
with:
name: glmf
path: glmf.zip
- name: Publish Release
run: |
RELEASE_VERSION=$(dart get_version.dart)
gh release create $RELEASE_VERSION \
glmf.zip \
-t "Release $RELEASE_VERSION" \
-n "Release $RELEASE_VERSION"
env:
GH_TOKEN: ${{ github.token }}
- name: Create Git Tag
run: |
RELEASE_VERSION=$(dart get_version.dart)
git tag $RELEASE_VERSION && git push origin $RELEASE_VERSION