Skip to content

Commit

Permalink
ops: deploy to github pages
Browse files Browse the repository at this point in the history
  • Loading branch information
adamchristiansen committed Jan 24, 2025
1 parent 3509ce6 commit 590e190
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 14 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/deploy-gh-pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Deploy to GitHub Pages

on:
push:
branches: ['main']
workflow_dispatch:

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

# Allow one concurrent deployment.
concurrency:
group: 'pages'
cancel-in-progress: true

jobs:
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: 'yarn'
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Build
run: yarn build
- name: Setup Pages
uses: actions/configure-pages@v4
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: './dist'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@
This is a tool used to design sinusoidal frequency modulation (SFM)
interferometer layouts.

**Check it out →** https://sfmdesigner.netlify.app
**Check it out →** https://blueskyspectroscopy.github.io/sfm-designer

SFM interferometry was the topic of my PhD thesis, which can be found at
[A cryogenic multiaxis range-resolved laser interferometer][thesis].

> A. Christiansen. "A cryogenic multiaxis range-resolved laser interferometer".
> Doctoral thesis, University of Lethbridge, 2024. Handle: 10133/6671.
> Doctoral thesis, University of Lethbridge, 2024.
> Handle: [10133/6671][thesis].
[thesis]: https://hdl.handle.net/10133/6671
12 changes: 0 additions & 12 deletions netlify.toml

This file was deleted.

1 change: 1 addition & 0 deletions vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import remarkGfm from 'remark-gfm'

// https://vitejs.dev/config/
export default defineConfig({
base: '/sfm-designer/',
plugins: [
{enforce: 'pre', ...mdx({providerImportSource: '@mdx-js/react', remarkPlugins: [remarkGfm]})},
react({include: /\.(jsx|js|mdx|md|tsx|ts)$/}),
Expand Down

0 comments on commit 590e190

Please sign in to comment.