Skip to content

Commit

Permalink
Add GitHub action
Browse files Browse the repository at this point in the history
  • Loading branch information
102747419 committed Sep 21, 2024
1 parent 6ab2338 commit 57b2310
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Deploy PressKit.io to GitHub Pages

on:
push:
branches:
- master

workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest

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

- name: Set up Node.js environment
uses: actions/setup-node@v3
with:
node-version: "20"

- name: Install dependencies
run: npm install presskit

- name: Build PressKit.io site
run: rmdir -r build; presskit build

- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build

0 comments on commit 57b2310

Please sign in to comment.