Delete index.html #9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy HTML Site | |
on: | |
push: | |
branches: | |
- main # Triggers the workflow on every push to the main branch | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
# Step 1: Checkout the repository | |
- name: Checkout Code | |
uses: actions/checkout@v2 | |
# Step 2: Install Unzip Tool | |
- name: Install unzip | |
run: sudo apt-get install unzip | |
# Step 3: Unzip the uploaded HTML folder to the root | |
- name: Unzip HTML folder to root | |
run: unzip html.zip -d ./ # Unzips the content directly into the root of the repo | |
# Step 4: Deploy to GitHub Pages (if using GitHub Pages from the 'gh-pages' branch) | |
- name: Deploy to GitHub Pages | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GH_PAT }} | |
publish_dir: ./ # This ensures everything at the root is deployed |