Skip to content

Commit 6f7aa22

Browse files
authored
Update main.yml
1 parent b4d5898 commit 6f7aa22

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

.github/workflows/main.yml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -27,21 +27,18 @@ jobs:
2727
- name: Set up Python
2828
uses: actions/setup-python@v4
2929
with:
30-
python-version: '3.x' # Change this if needed
30+
python-version: '3.x' # Ensure correct Python version
3131

3232
- name: Install Dependencies
33-
run: |
34-
pip install -r requirements.txt
33+
run: pip install -r requirements.txt
3534

36-
- name: Build the Streamlit App
35+
- name: Generate Static Files
3736
run: |
3837
mkdir -p build
39-
streamlit run netsec_scanner.py & # Runs in the background
40-
sleep 10 # Wait for the app to start
41-
wget -r -np -P build http://localhost:8501
38+
echo "<h1>NetSec Scanner Deployment</h1><p>This is a placeholder page until proper hosting is configured.</p>" > build/index.html
4239
4340
- name: Upload GitHub Pages Artifact
44-
uses: actions/upload-pages-artifact@v2
41+
uses: actions/upload-pages-artifact@v1
4542
with:
4643
path: build
4744

@@ -55,4 +52,4 @@ jobs:
5552
steps:
5653
- name: Deploy to GitHub Pages
5754
id: deployment
58-
uses: actions/deploy-pages@v3
55+
uses: actions/deploy-pages@v2

0 commit comments

Comments
 (0)