Update actions' versions and change web build href

This commit is contained in:
Phani Pavan Kambhampati
2023-09-02 12:14:40 +05:30
committed by GitHub
parent 9d4f5a6850
commit 053925cb14

View File

@@ -15,7 +15,7 @@ jobs:
steps: steps:
- name: Checkout code - name: Checkout code
uses: actions/checkout@v2 uses: actions/checkout@v3.6.0
# - name: Cache Flutter dependencies # - name: Cache Flutter dependencies
# uses: actions/cache@v1 # uses: actions/cache@v1
@@ -23,7 +23,7 @@ jobs:
# path: /opt/hostedtoolcache/flutter # path: /opt/hostedtoolcache/flutter
# key: ${{ runner.OS }}-flutter-install-cache-${{ env.flutter_version }} # key: ${{ runner.OS }}-flutter-install-cache-${{ env.flutter_version }}
- name: Install Flutter - name: Install Flutter
uses: subosito/flutter-action@v2 uses: subosito/flutter-action@v2.10.0
with: with:
channel: 'stable' channel: 'stable'
@@ -37,10 +37,10 @@ jobs:
# run: flutter test # run: flutter test
- name: Build release project - name: Build release project
run: flutter build web run: flutter build web --base-href "/IIITB_Menu/"
- name: Upload production-ready build files - name: Upload production-ready build files
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v3.1.2
with: with:
name: production-files name: production-files
path: ./build/web path: ./build/web
@@ -53,13 +53,13 @@ jobs:
steps: steps:
- name: Download artifact - name: Download artifact
uses: actions/download-artifact@v2 uses: actions/download-artifact@v2.1.1
with: with:
name: production-files name: production-files
path: ./build path: ./build
- name: Deploy to gh-pages - name: Deploy to gh-pages
uses: peaceiris/actions-gh-pages@v3 uses: peaceiris/actions-gh-pages@v3.1.12
with: with:
github_token: ${{ secrets.GITHUB_TOKEN }} github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build publish_dir: ./build