Skip to content

Commit

Permalink
Add deployments for the new page
Browse files Browse the repository at this point in the history
  • Loading branch information
Yatekii committed Nov 12, 2023
1 parent 2811424 commit 953f711
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 1 deletion.
40 changes: 40 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Publish on GitHub Pages

on:
push:
branches: [ new-page ]

permissions:
contents: read
pages: write
id-token: write

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Clone repository
uses: actions/checkout@v4

- name: Setup Deno environment
uses: denoland/setup-deno@v1
with:
deno-version: v1.x

- name: Build site
run: deno task build
env:
GITHUB_TOKEN: ${{ secrets.TOKEN }}

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

- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
path: 'target'

- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1
2 changes: 1 addition & 1 deletion src/targets/_data.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { getJep106Manufacturer } from "../_includes/jep106.js";

export const layout = "layouts/plugins.jsx";
export const mainMenu = "plugins";
const REPO_PATH = "probe-rs-repo";
const REPO_PATH = "./probe-rs-repo";

const auth = Deno.env.get("GITHUB_TOKEN");
const octokit = new Octokit({
Expand Down

0 comments on commit 953f711

Please sign in to comment.