Update actions' versions and change web build href
This commit is contained in:
committed by
GitHub
parent
9d4f5a6850
commit
053925cb14
12
.github/workflows/gh-pages.yml
vendored
12
.github/workflows/gh-pages.yml
vendored
@@ -15,7 +15,7 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v2
|
||||
uses: actions/checkout@v3.6.0
|
||||
|
||||
# - name: Cache Flutter dependencies
|
||||
# uses: actions/cache@v1
|
||||
@@ -23,7 +23,7 @@ jobs:
|
||||
# path: /opt/hostedtoolcache/flutter
|
||||
# key: ${{ runner.OS }}-flutter-install-cache-${{ env.flutter_version }}
|
||||
- name: Install Flutter
|
||||
uses: subosito/flutter-action@v2
|
||||
uses: subosito/flutter-action@v2.10.0
|
||||
with:
|
||||
channel: 'stable'
|
||||
|
||||
@@ -37,10 +37,10 @@ jobs:
|
||||
# run: flutter test
|
||||
|
||||
- name: Build release project
|
||||
run: flutter build web
|
||||
run: flutter build web --base-href "/IIITB_Menu/"
|
||||
|
||||
- name: Upload production-ready build files
|
||||
uses: actions/upload-artifact@v2
|
||||
uses: actions/upload-artifact@v3.1.2
|
||||
with:
|
||||
name: production-files
|
||||
path: ./build/web
|
||||
@@ -53,13 +53,13 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: Download artifact
|
||||
uses: actions/download-artifact@v2
|
||||
uses: actions/download-artifact@v2.1.1
|
||||
with:
|
||||
name: production-files
|
||||
path: ./build
|
||||
|
||||
- name: Deploy to gh-pages
|
||||
uses: peaceiris/actions-gh-pages@v3
|
||||
uses: peaceiris/actions-gh-pages@v3.1.12
|
||||
with:
|
||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
publish_dir: ./build
|
||||
|
||||
Reference in New Issue
Block a user