Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
tsutsu3 committed Dec 20, 2024
1 parent e5781b4 commit f55fe86
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,29 @@ jobs:
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
prepare-release:
runs-on: ubuntu-latest
if: startsWith(github.ref_name, 'release-v')
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: npm install
- name: Extract version from branch
id: extract_version
run: |
branch_name="${{ github.ref_name }}"
version="${branch_name#release-v}"
echo "version=v$version" >> $GITHUB_ENV
- name: Generate Changelog
run: |
git cliff --tag ${{ env.version }} --output CHANGELOG.md
git add CHANGELOG.md
git commit -m "chore: update CHANGELOG for version ${{ env.version }}"
git push origin ${{ github.ref_name }}
- name: Update version in pubspec.yaml
run: |
version_line=$(grep "^version:" pubspec.yaml)
sed -i "s/$version_line/version: ${{ env.version }}/" pubspec.yaml
git add pubspec.yaml
git commit -m "chore: update pubspec.yaml version to ${{ env.version }}"
git push origin ${{ github.ref_name }}

0 comments on commit f55fe86

Please sign in to comment.