Skip to content

Commit

Permalink
update gh-pages action dart version to 2.19.6
Browse files Browse the repository at this point in the history
  • Loading branch information
dave-doty committed Sep 13, 2024
1 parent 38240c1 commit 51f2a07
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 17 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/gh-pages-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ jobs:
with:
ref: gh-pages
path: gh-pages-repo



- name: Setup Dart SDK Step 1
run: sudo apt-get update
Expand All @@ -31,20 +31,20 @@ jobs:
- name: Setup Dart SDK Step 4
run: sudo sh -c 'wget -qO- https://storage.googleapis.com/download.dartlang.org/linux/debian/dart_stable.list > /etc/apt/sources.list.d/dart_stable.list'
- name: Setup Dart SDK Step 5
run: wget -O /tmp/dart_2.13.4-1_amd64.deb https://storage.googleapis.com/dart-archive/channels/stable/release/2.13.4/linux_packages/dart_2.13.4-1_amd64.deb
run: wget -O /tmp/dart_2.19.6-1_amd64.deb https://storage.googleapis.com/dart-archive/channels/stable/release/2.19.6/linux_packages/dart_2.19.6-1_amd64.deb
- name: Setup Dart SDK Step 6
run: sudo apt install /tmp/dart_2.13.4-1_amd64.deb
run: sudo apt install /tmp/dart_2.19.6-1_amd64.deb

- name: Install dependencies
run: PATH="$PATH:/usr/lib/dart/bin" pub get

- name: Install webdev
run: PATH="$PATH:/usr/lib/dart/bin" pub global activate webdev


- name: Build into gh-pages repo
run: PATH="$PATH:/usr/lib/dart/bin" pub global run webdev build -o web:gh-pages-repo/dev


- name: Deploy
uses: peaceiris/actions-gh-pages@v3
Expand Down
20 changes: 10 additions & 10 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ jobs:
with:
ref: gh-pages
path: gh-pages-repo



- name: Setup Dart SDK Step 1
run: sudo apt-get update
Expand All @@ -29,12 +29,12 @@ jobs:
- name: Setup Dart SDK Step 4
run: sudo sh -c 'wget -qO- https://storage.googleapis.com/download.dartlang.org/linux/debian/dart_stable.list > /etc/apt/sources.list.d/dart_stable.list'
- name: Setup Dart SDK Step 5
run: wget -O /tmp/dart_2.13.4-1_amd64.deb https://storage.googleapis.com/dart-archive/channels/stable/release/2.13.4/linux_packages/dart_2.13.4-1_amd64.deb
run: wget -O /tmp/dart_2.19.6-1_amd64.deb https://storage.googleapis.com/dart-archive/channels/stable/release/2.19.6/linux_packages/dart_2.19.6-1_amd64.deb
- name: Setup Dart SDK Step 6
run: sudo apt install /tmp/dart_2.13.4-1_amd64.deb
run: sudo apt install /tmp/dart_2.19.6-1_amd64.deb
- name: Install dependencies
run: PATH="$PATH:/usr/lib/dart/bin" pub get

- name: Install webdev
run: PATH="$PATH:/usr/lib/dart/bin" pub global activate webdev

Expand All @@ -45,11 +45,11 @@ jobs:
run: echo "VERSION=$(cat lib/src/constants.dart | grep 'const String CURRENT_VERSION = .*' | grep -oP '\d+\.\d+\.\d+')" >> $GITHUB_ENV
- name: Build into gh-pages-repo/VERSION
run: |
if [ "$VERSION" != "" ]; then
PATH="$PATH:/usr/lib/dart/bin" pub global run webdev build -o web:gh-pages-repo/v$VERSION
else
echo "::warning deploying VERSION skipped because VERSION number could not be found"
fi
if [ "$VERSION" != "" ]; then
PATH="$PATH:/usr/lib/dart/bin" pub global run webdev build -o web:gh-pages-repo/v$VERSION
else
echo "::warning deploying VERSION skipped because VERSION number could not be found"
fi
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
Expand Down

0 comments on commit 51f2a07

Please sign in to comment.