Skip to content

Commit

Permalink
Merge pull request builttoroam#352 from thomassth/clean-up
Browse files Browse the repository at this point in the history
Updating CI/CD
thomassth authored Nov 12, 2021
2 parents 32ab214 + 1a27bca commit fb3496a
Showing 2 changed files with 26 additions and 18 deletions.
24 changes: 14 additions & 10 deletions .github/workflows/prerelease.yml
Original file line number Diff line number Diff line change
@@ -21,18 +21,14 @@ jobs:
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- name: Get Changelog Entry
id: changelog_reader
# uses: mindsers/changelog-reader-action@e1a36842bddbd512340f882735802de843998e1f
uses: mindsers/changelog-reader-action@v2.0.0
- uses: subosito/flutter-action@v1
with:
channel: "stable"
- run: dart --version
- run: flutter --version
- name: Edit pubspec.ymal for dev release
run: |
sed -i "s/version.*/&+$GITHUB_RUN_ID/" pubspec.yaml
- name: Add entry to Github release
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ steps.changelog_reader.outputs.version }}+${{ github.run_id }}
prerelease: true
sed -i "s/version.*/&-$GITHUB_RUN_ID/" pubspec.yaml
- name: Fetch credentials for publish
run: |
content=`cat ~/.pub-cache/credentials.json`
@@ -43,3 +39,11 @@ jobs:
flutter_package: true
skip_test: false
dry_run: true
- name: Get Changelog Entry
id: changelog_reader
uses: mindsers/changelog-reader-action@v2.0.0
- name: Add entry to Github release
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ steps.changelog_reader.outputs.version }}+${{ github.run_id }}
prerelease: true
20 changes: 12 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -20,15 +20,11 @@ jobs:
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- name: Get Changelog Entry
id: changelog_reader
# uses: mindsers/changelog-reader-action@e1a36842bddbd512340f882735802de843998e1f
uses: mindsers/changelog-reader-action@v2.0.0
- name: Add entry to Github release
uses: softprops/action-gh-release@v1
- uses: subosito/flutter-action@v1
with:
tag_name: ${{ steps.changelog_reader.outputs.version }}
body: ${{ steps.changelog_reader.outputs.changes }}
channel: "stable"
- run: dart --version
- run: flutter --version
- name: Fetch credentials for publish
run: |
content=`cat ~/.pub-cache/credentials.json`
@@ -39,3 +35,11 @@ jobs:
flutter_package: true
skip_test: false
dry_run: true
- name: Get Changelog Entry
id: changelog_reader
uses: mindsers/changelog-reader-action@v2.0.0
- name: Add entry to Github release
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ steps.changelog_reader.outputs.version }}
body: ${{ steps.changelog_reader.outputs.changes }}

0 comments on commit fb3496a

Please sign in to comment.