Skip to content

Commit

Permalink
fix: ci
Browse files Browse the repository at this point in the history
  • Loading branch information
dungngminh committed Jul 7, 2023
1 parent 1123acd commit 11988ab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 54 deletions.
54 changes: 1 addition & 53 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,30 +44,12 @@ jobs:
type: "zip"
filename: app_creaty-${{ steps.version.outputs.version-number }}-linux.zip
directory: build/linux/x64/release/bundle

- name: Get previous tag
id: get_previous_tag
uses: younited/[email protected]
- name: Generate changelog
id: changelog
uses: jaywcjlove/changelog-generator@main
if: ${{ steps.get_previous_tag.outputs.previous-tag != '' }}
with:
token: ${{ secrets.GITHUB_TOKEN }}
filter-author: (jaywcjlove|小弟调调™|dependabot|renovate\\[bot\\]|dependabot\\[bot\\]|Renovate Bot)
filter: '[R|r]elease[d]\s+[v|V]\d(\.\d+){0,2}'
- name: Get the changelog
run: echo "${{ steps.changelog.outputs.changelog }}"
- name: Create Release
uses: ncipollo/release-action@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
name: v${{ steps.version.outputs.version-number }}
tag: ${{ steps.version.outputs.version-number }}
body: |
${{ steps.changelog.outputs.changelog }}
${{ steps.changelog.outputs.compareurl }}
artifacts: build/linux/x64/release/bundle/app_creaty-${{ steps.version.outputs.version-number }}-linux.zip

build_on_windows:
Expand Down Expand Up @@ -99,30 +81,12 @@ jobs:
type: "zip"
filename: app_creaty-${{ steps.version.outputs.version-number }}-windows.zip
directory: build/windows/runner/Release
- name: Get previous tag
id: get_previous_tag
uses: younited/[email protected]
- name: Generate changelog
id: changelog
uses: jaywcjlove/changelog-generator@main
if: ${{ steps.get_previous_tag.outputs.previous-tag != '' }}
with:
token: ${{ secrets.GITHUB_TOKEN }}
filter-author: (jaywcjlove|小弟调调™|dependabot|renovate\\[bot\\]|dependabot\\[bot\\]|Renovate Bot)
filter: '[R|r]elease[d]\s+[v|V]\d(\.\d+){0,2}'
- name: Get the changelog
run: echo "${{ steps.changelog.outputs.changelog }}"
- name: Create Release
uses: ncipollo/release-action@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
name: v${{ steps.version.outputs.version-number }}
tag: ${{ steps.version.outputs.version-number }}
body: |
${{ steps.changelog.outputs.changelog }}
${{ steps.changelog.outputs.compareurl }}
artifacts: build/windows/runner/Release/app_creaty-${{ steps.version.outputs.version-number }}-windows.zip

build_on_macos:
Expand Down Expand Up @@ -154,27 +118,11 @@ jobs:
type: "zip"
filename: app_creaty-${{github.ref_name}}-macos.zip
directory: build/macos/Build/Products/Release
- name: Get previous tag
id: get_previous_tag
uses: younited/[email protected]
- name: Generate changelog
id: changelog
uses: jaywcjlove/changelog-generator@main
if: ${{ steps.get_previous_tag.outputs.previous-tag != '' }}
with:
token: ${{ secrets.GITHUB_TOKEN }}
filter-author: (jaywcjlove|小弟调调™|dependabot|renovate\\[bot\\]|dependabot\\[bot\\]|Renovate Bot)
filter: '[R|r]elease[d]\s+[v|V]\d(\.\d+){0,2}'
- name: Get the changelog
run: echo "${{ steps.changelog.outputs.changelog }}"

- name: Create Release
uses: ncipollo/release-action@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
name: v${{ steps.version.outputs.version-number }}
tag: ${{ steps.version.outputs.version-number }}
body: |
${{ steps.changelog.outputs.changelog }}
${{ steps.changelog.outputs.compareurl }}
artifacts: build/macos/Build/Products/Release/app_creaty-${{steps.version.outputs.version-number}}-macos.zip
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ description: App Creaty - Drag n Drop Mobile Developement Tool

publish_to: "none"

version: 0.9.2
version: 0.9.3

environment:
sdk: ">=3.0.0"
Expand Down

0 comments on commit 11988ab

Please sign in to comment.