Skip to content

updated deployment.yml file #2

updated deployment.yml file

updated deployment.yml file #2

Workflow file for this run

name: Deployment
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
upload:
runs-on: ubuntu-latest
steps:
- name: Get Code
uses: actions/checkout@v4
- name: Upload Build
uses: actions/upload-pages-artifact@v3
with:
path: .
deploy:
needs: upload
# Only deploy for the main branch
if: github.ref == 'refs/heads/main'
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Get Code
uses: actions/checkout@v4
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4