Skip to content

Commit

Permalink
added ghpages branch deploy action
Browse files Browse the repository at this point in the history
  • Loading branch information
abhirup-m committed Jul 28, 2024
1 parent 5ec13ab commit e81c780
Show file tree
Hide file tree
Showing 35 changed files with 22 additions and 5,176 deletions.
70 changes: 18 additions & 52 deletions .github/workflows/ghpages.yml
Original file line number Diff line number Diff line change
@@ -1,63 +1,29 @@
# Simple workflow for deploying static content to GitHub Pages
name: GHPages
name: Deploy

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:
actions: write
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
branches:
- master # update to match your development branch (master, main, dev, trunk, ...)
tags: '*'
pull_request:

jobs:
documenter:
runs-on: ${{ matrix.os }}
strategy:
matrix:
julia-version: ['1.10']
julia-arch: [x64]
os: [ubuntu-latest, windows-latest, macOS-latest]
exclude:
- os: macOS-latest
julia-arch: x86

build:
permissions:
contents: write
pull-requests: read
statuses: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v1
- uses: julia-actions/setup-julia@v2
with:
version: ${{ matrix.julia-version }}
arch: ${{ matrix.julia-arch }}
version: '1.10'
- uses: julia-actions/cache@v1
- uses: julia-actions/julia-buildpkg@v1
- run: julia --project docs/make.jl
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
# Upload entire repository
path: 'docs/build/'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
- name: Build and deploy
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # If authenticating with GitHub Actions token
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} # If authenticating with SSH deploy key
run: julia --project docs/make.jl
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
*.pdf
data/*
.ipynb_checkpoints/*
*/build/**
1 change: 0 additions & 1 deletion docs/build/.documenter-siteinfo.json

This file was deleted.

Loading

0 comments on commit e81c780

Please sign in to comment.