Skip to content

Commit

Permalink
upload website to github pages
Browse files Browse the repository at this point in the history
  • Loading branch information
aditsachde committed Jul 3, 2024
1 parent 0a56c7c commit 5367cf7
Showing 1 changed file with 28 additions and 22 deletions.
50 changes: 28 additions & 22 deletions .github/workflows/website.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,35 +2,41 @@ name: Publish Website

on:
push:
branches: ["main"]
paths:
- "website/**"
- ".github/workflows/website.yaml"

# 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:
publish:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
name: Publish Website
environment:
name: website
url: https://itko.dev

steps:
- name: Checkout
uses: actions/checkout@v3

# Run a build step here if your project requires

- name: Publish to Cloudflare Pages
uses: cloudflare/pages-action@v1
uses: actions/checkout@v4
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: d6c9148e8a093f540df75bdca1016654
projectName: itko
directory: .
# Optional: Switch what branch you are publishing to.
# By default this will be the branch which triggered this workflow
branch: main
# Optional: Change the working directory
workingDirectory: website
# Optional: Change the Wrangler version, allows you to point to a specific version or a tag such as `beta`
wranglerVersion: "3"
path: 'website'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4

0 comments on commit 5367cf7

Please sign in to comment.