Skip to content

Commit

Permalink
Add flutter version veriable in the gh-pages.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
imaNNeo committed Nov 13, 2023
1 parent fb672b5 commit dcb1188
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,16 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4 # Only works with v2
- uses: subosito/flutter-action@v2
- uses: actions/checkout@v4
- name: Install Flutter
uses: subosito/flutter-action@v2

- name: Set fl_chart Version
run: |
VERSION=$(grep "version:" fl_chart.yaml | awk '{ print $2 }')
echo "USING_FL_CHART_VERSION=$VERSION" >> $GITHUB_ENV
- uses: bluefireteam/flutter-gh-pages@v8
with:
workingDir: example
workingDir: example
customArgs: --dart-define="USING_FL_CHART_VERSION=${{ env.USING_FL_CHART_VERSION }}"

0 comments on commit dcb1188

Please sign in to comment.