Skip to content

Commit

Permalink
added github actions workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
helloukey committed Apr 11, 2024
1 parent 50e6f72 commit 2c76ae4
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/deployment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Test and Deploy
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
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: build
# 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

0 comments on commit 2c76ae4

Please sign in to comment.