Skip to content

Commit

Permalink
Publish pages
Browse files Browse the repository at this point in the history
  • Loading branch information
Twinki14 committed Sep 29, 2024
1 parent ce41776 commit 73315c2
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 1 deletion.
40 changes: 40 additions & 0 deletions .github/workflows/deploy-pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# Simple workflow for deploying static content to GitHub Pages
name: Deploy - Pages

on:
push:
branches: gh-pages

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write

concurrency:
group: pages
cancel-in-progress: false

jobs:
deploy:
environment:
name: Pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: gh-pages

- name: Setup - Pages
uses: actions/configure-pages@v5

- name: Upload - Artifacts
uses: actions/upload-pages-artifact@v3
with:
path: '.'

- name: Deploy - Pages
id: deployment
uses: actions/deploy-pages@v4
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
# Ignore everything
*

# Allow gitignore
# Allow gitignore & github dir
!.gitignore
!.github/**

# Allow directories (so you can still track specific files inside them)
!*/
Expand Down

0 comments on commit 73315c2

Please sign in to comment.