Skip to content

Commit

Permalink
Prepare release
Browse files Browse the repository at this point in the history
  • Loading branch information
Ephenodrom committed Feb 1, 2024
1 parent cf6fbe6 commit 19cb92e
Showing 1 changed file with 25 additions and 32 deletions.
57 changes: 25 additions & 32 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,35 +8,28 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Dart SDK
uses: dart-lang/setup-dart@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
uses: actions/upload-artifact@v2
with:
name: glmf
path: glmf

- name: Create Release
uses: actions/setup-gh@latest
with:
gh-version: 2.2.0

- 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 }}
- 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 }}

0 comments on commit 19cb92e

Please sign in to comment.