Modified actions
This commit is contained in:
50
.github/workflows/gh-pages.yml
vendored
50
.github/workflows/gh-pages.yml
vendored
@@ -29,23 +29,23 @@ jobs:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v3.6.0
|
||||
|
||||
- name: Setup Python
|
||||
uses: actions/setup-python@v4.7.0
|
||||
with:
|
||||
python-version: "3.11"
|
||||
# - name: Setup Python
|
||||
# uses: actions/setup-python@v4.7.0
|
||||
# with:
|
||||
# python-version: "3.11"
|
||||
|
||||
- name: Install Packages
|
||||
working-directory: ./scripts
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
pip install -r requirements.txt
|
||||
# - name: Install Packages
|
||||
# working-directory: ./scripts
|
||||
# run: |
|
||||
# python -m pip install --upgrade pip
|
||||
# pip install -r requirements.txt
|
||||
|
||||
- name: Compile Menu
|
||||
working-directory: ./scripts
|
||||
run: python scrapeToJson.py
|
||||
# - name: Compile Menu
|
||||
# working-directory: ./scripts
|
||||
# run: python scrapeToJson.py
|
||||
|
||||
- name: Copy Data File
|
||||
run: cp ./scripts/data.dart ./lib/data.dart
|
||||
# - name: Copy Data File
|
||||
# run: cp ./scripts/data.dart ./lib/data.dart
|
||||
# - name: Cache Flutter dependencies
|
||||
# uses: actions/cache@v1
|
||||
# with:
|
||||
@@ -68,17 +68,17 @@ jobs:
|
||||
- name: Build release project
|
||||
run: flutter build web --base-href "/IIITB_Menu/" --web-renderer canvaskit
|
||||
|
||||
- name: Create Release
|
||||
uses: marvinpinto/action-automatic-releases@v1.2.1
|
||||
with:
|
||||
repo_token: "${{ secrets.GITHUB_TOKEN }}"
|
||||
automatic_release_tag: "latest"
|
||||
prerelease: false
|
||||
draft: false
|
||||
title: "Bi-Weekly Release"
|
||||
files: |
|
||||
./scripts/out.txt
|
||||
./scripts/out.json
|
||||
# - name: Create Release
|
||||
# uses: marvinpinto/action-automatic-releases@v1.2.1
|
||||
# with:
|
||||
# repo_token: "${{ secrets.GITHUB_TOKEN }}"
|
||||
# automatic_release_tag: "latest"
|
||||
# prerelease: false
|
||||
# draft: false
|
||||
# title: "Bi-Weekly Release"
|
||||
# files: |
|
||||
# ./scripts/out.txt
|
||||
# ./scripts/out.json
|
||||
|
||||
- name: Upload production-ready build files
|
||||
uses: actions/upload-artifact@v3.1.2
|
||||
|
||||
Reference in New Issue
Block a user