Skip to content

Commit

Permalink
Merge pull request #513 from builttoroam/workflow-update
Browse files Browse the repository at this point in the history
  • Loading branch information
IVLIVS-III authored Mar 19, 2024
2 parents e991dcc + bddadd0 commit a6352f6
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 16 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/dart.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,6 @@ jobs:
runs-on: macos-13
steps:
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: '15.0-beta'
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
Expand Down
11 changes: 4 additions & 7 deletions .github/workflows/prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ jobs:
name: Development Release
# The type of runner that the job will run on
runs-on: ubuntu-latest
permissions:
id-token: write # Required for authentication using OIDC
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
Expand All @@ -36,15 +38,10 @@ jobs:
run: |
sed -i "0,/\#\# \[.*/s//## [${{steps.changelog_reader.outputs.version}}-$GITHUB_RUN_ID]/" CHANGELOG.md
cat CHANGELOG.md
- name: Setup credentials
run: |
cat <<EOF > $PUB_CACHE/credentials.json
${{ secrets.CREDENTIALS }}
EOF
- name: Publish package
run: flutter pub publish --force
uses: dart-lang/setup-dart/.github/workflows/publish.yml@v1
- 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
prerelease: true
11 changes: 4 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ jobs:
release:
# The type of runner that the job will run on
runs-on: ubuntu-latest
permissions:
id-token: write # Required for authentication using OIDC
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
Expand All @@ -25,18 +27,13 @@ jobs:
channel: "stable"
- run: dart --version
- run: flutter --version
- name: Setup credentials
run: |
cat <<EOF > $PUB_CACHE/credentials.json
${{ secrets.CREDENTIALS }}
EOF
- name: Publish package
run: flutter pub publish --force
uses: dart-lang/setup-dart/.github/workflows/publish.yml@v1
- name: Get Changelog Entry
id: changelog_reader
uses: mindsers/[email protected]
- 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 }}
body: ${{ steps.changelog_reader.outputs.changes }}

0 comments on commit a6352f6

Please sign in to comment.