Deploy static content to Pages #22
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
# Simple workflow for deploying static content to GitHub Pages | |
name: Deploy static content to Pages | |
on: | |
# Runs on pushes targeting the default branch | |
push: | |
branches: ["master"] | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages | |
permissions: | |
contents: read | |
pages: write | |
id-token: write | |
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. | |
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. | |
concurrency: | |
group: "pages" | |
cancel-in-progress: false | |
jobs: | |
# Single deploy job since we're just deploying | |
deploy: | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Pull projects repository | |
run: | | |
git clone --branch remote-build https://github.com/aakashdinkarh/projects.git temp-projects | |
mkdir -p projects | |
rm -rf projects/* | |
mv temp-projects/* projects/ | |
rm -rf temp-projects | |
- name: Pull bounce-and-collect-game repository | |
run: | | |
git clone --branch remote-build https://github.com/aakashdinkarh/bounce-and-collect-game.git temp-bounce-and-collect-game | |
mkdir -p bounce-and-collect-game | |
rm -rf bounce-and-collect-game/* | |
mv temp-bounce-and-collect-game/* bounce-and-collect-game/ | |
rm -rf temp-bounce-and-collect-game | |
- name: Pull portfolio-v1 repository | |
run: | | |
git clone --branch remote-build https://github.com/aakashdinkarh/portfolio-v1.git temp-portfolio-v1 | |
mkdir -p portfolio-v1 | |
rm -rf portfolio-v1/* | |
mv temp-portfolio-v1/* portfolio-v1/ | |
rm -rf temp-portfolio-v1 | |
- name: Pull portfolio-v0 repository | |
run: | | |
git clone --branch remote-build https://github.com/aakashdinkarh/portfolio-v0.git temp-portfolio-v0 | |
mkdir -p portfolio-v0 | |
rm -rf portfolio-v0/* | |
mv temp-portfolio-v0/* portfolio-v0/ | |
rm -rf temp-portfolio-v0 | |
- name: Pull case-utils repository | |
run: | | |
git clone --branch remote-build https://github.com/aakashdinkarh/case-utils.git temp-case-utils | |
mkdir -p case-utils | |
rm -rf case-utils/* | |
mv temp-case-utils/* case-utils/ | |
rm -rf temp-case-utils | |
- name: Pull block-game repository | |
run: | | |
git clone --branch remote-build https://github.com/aakashdinkarh/block-game.git temp-block-game | |
mkdir -p block-game | |
rm -rf block-game/* | |
mv temp-block-game/* block-game/ | |
rm -rf temp-block-game | |
- name: Pull panda-img repository | |
run: | | |
git clone --branch remote-build https://github.com/aakashdinkarh/panda-img.git temp-panda-img | |
mkdir -p panda-img | |
rm -rf panda-img/* | |
mv temp-panda-img/* panda-img/ | |
rm -rf temp-panda-img | |
- name: Pull calculator repository | |
run: | | |
git clone --branch remote-build https://github.com/aakashdinkarh/calculator.git temp-calculator | |
mkdir -p calculator | |
rm -rf calculator/* | |
mv temp-calculator/* calculator/ | |
rm -rf temp-calculator | |
- name: Pull MemoryGame repository | |
run: | | |
git clone --branch remote-build https://github.com/aakashdinkarh/MemoryGame.git temp-MemoryGame | |
mkdir -p MemoryGame | |
rm -rf MemoryGame/* | |
mv temp-MemoryGame/* MemoryGame/ | |
rm -rf temp-MemoryGame | |
- name: Pull Image-modal repository | |
run: | | |
git clone --branch remote-build https://github.com/aakashdinkarh/Image-modal.git temp-Image-modal | |
mkdir -p Image-modal | |
rm -rf Image-modal/* | |
mv temp-Image-modal/* Image-modal/ | |
rm -rf temp-Image-modal | |
- name: Pull checkout-form repository | |
run: | | |
git clone --branch remote-build https://github.com/aakashdinkarh/checkout-form.git temp-checkout-form | |
mkdir -p checkout-form | |
rm -rf checkout-form/* | |
mv temp-checkout-form/* checkout-form/ | |
rm -rf temp-checkout-form | |
- name: Pull Login-form repository | |
run: | | |
git clone --branch remote-build https://github.com/aakashdinkarh/Login-form.git temp-Login-form | |
mkdir -p Login-form | |
rm -rf Login-form/* | |
mv temp-Login-form/* Login-form/ | |
rm -rf temp-Login-form | |
- name: Pull Tic-Tac-Toe-Game repository | |
run: | | |
git clone --branch gh-pages https://github.com/aakashdinkarh/Tic-Tac-Toe-Game.git temp-Tic-Tac-Toe-Game | |
mkdir -p Tic-Tac-Toe-Game | |
rm -rf Tic-Tac-Toe-Game/* | |
mv temp-Tic-Tac-Toe-Game/* Tic-Tac-Toe-Game/ | |
rm -rf temp-Tic-Tac-Toe-Game | |
- name: Pull the-movie-db repository | |
run: | | |
git clone --branch gh-pages https://github.com/aakashdinkarh/the-movie-db.git temp-the-movie-db | |
mkdir -p the-movie-db | |
rm -rf the-movie-db/* | |
mv temp-the-movie-db/* the-movie-db/ | |
rm -rf temp-the-movie-db | |
- name: Pull music-player-project repository | |
run: | | |
git clone --branch gh-pages https://github.com/aakashdinkarh/music-player-project.git temp-music-player-project | |
mkdir -p music-player-project | |
rm -rf music-player-project/* | |
mv temp-music-player-project/* music-player-project/ | |
rm -rf temp-music-player-project | |
- name: Setup Pages | |
uses: actions/configure-pages@v5 | |
- name: Upload artifact | |
uses: actions/upload-pages-artifact@v3 | |
with: | |
# Upload entire repository | |
path: '.' | |
- name: Deploy to GitHub Pages | |
id: deployment | |
uses: actions/deploy-pages@v4 |