Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/templates/git-pr-release.erb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
【Production Release】<%= Time.now.strftime('%Y-%m-%d %H:%M') %>

## Description
Distribute DevTool extension :rocket:
Distribute custom lint :rocket:

## Target PR
<% pull_requests.each do |pr| -%>
Expand Down
38 changes: 38 additions & 0 deletions .github/workflows/create-tag.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Create Release

on:
push:
branches:
- release

jobs:
release:
runs-on: ubuntu-latest
timeout-minutes: 10

permissions:
contents: write

steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
fetch-depth: 0

- name: Extract version from pubspec.yaml
id: version
run: |
VERSION=$(grep '^version:' pubspec.yaml | awk '{print $2}')
VERSION_NAME=$(echo $VERSION | cut -d'+' -f1)
TAG_NAME="v${VERSION}"
echo "version=$VERSION" >> $GITHUB_OUTPUT
echo "version_name=$VERSION_NAME" >> $GITHUB_OUTPUT
echo "tag_name=$TAG_NAME" >> $GITHUB_OUTPUT
echo "Version: $VERSION (Tag: $TAG_NAME)"

- name: Create and push tag
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git tag -a ${{ steps.version.outputs.tag_name }} -m "Release ${{ steps.version.outputs.version }}"
git push origin ${{ steps.version.outputs.tag_name }}
29 changes: 6 additions & 23 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ name: Publish

on:
push:
branches:
- release
tags:
- "v*"

jobs:
publish:
Expand Down Expand Up @@ -41,6 +41,7 @@ jobs:
run: dart pub publish --force

release:
needs: [publish]
runs-on: ubuntu-latest
timeout-minutes: 10

Expand All @@ -53,36 +54,18 @@ jobs:
with:
fetch-depth: 0

- name: Extract version from pubspec.yaml
id: version
run: |
VERSION=$(grep '^version:' pubspec.yaml | awk '{print $2}')
VERSION_NAME=$(echo $VERSION | cut -d'+' -f1)
TAG_NAME="v${VERSION}"
echo "version=$VERSION" >> $GITHUB_OUTPUT
echo "version_name=$VERSION_NAME" >> $GITHUB_OUTPUT
echo "tag_name=$TAG_NAME" >> $GITHUB_OUTPUT
echo "Version: $VERSION (Tag: $TAG_NAME)"

- name: Create and push tag
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git tag -a ${{ steps.version.outputs.tag_name }} -m "Release ${{ steps.version.outputs.version }}"
git push origin ${{ steps.version.outputs.tag_name }}

- name: Extract release notes from CHANGELOG
id: release_notes
uses: octivi/release-notes-from-changelog@7e6de14efd823919839acf82f08041f885c8fca9 # v1.0.0
with:
tag: ${{ steps.version.outputs.tag_name }}
tag: ${{ github.ref_name }}
changelog: CHANGELOG.md

- name: Create GitHub Release
uses: softprops/action-gh-release@153bb8e04406b158c6c84fc1615b65b24149a1fe # v2.6.1
with:
tag_name: ${{ steps.version.outputs.tag_name }}
name: Release ${{ steps.version.outputs.version }}
tag_name: ${{ github.ref_name }}
name: Release ${{ github.ref_name }}
body_path: ${{ steps.release_notes.outputs.release_notes }}
draft: false
prerelease: false
5 changes: 5 additions & 0 deletions .pubignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@
analysis_options.yaml
renovate.json
sangria.iml
CLAUDE.md
mise.toml
package.json
pnpm-lock.yaml

example/example.iml
docs/
test/
Loading