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 e914469
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 1 deletion.
44 changes: 44 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Deploy presskit.html to GitHub Pages

on:
push:
branches:
- master

workflow_dispatch:

permissions:
id-token: write

jobs:
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: windows-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

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

- name: Run install
run: yarn install

- name: Build presskit.html site
run: yarn presskit build

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

- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: "./build"

- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
build/
node_modules
build/
12 changes: 12 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"name": "bearly-humans-presskit",
"version": "1.0.0",
"description": "Made with [presskit.html](/~https://github.com/pixelnest/presskit.html)",
"author": "Bearly Humans",
"scripts": {
"build": "presskit build"
},
"dependencies": {
"presskit": "^0.13.0"
}
}

0 comments on commit e914469

Please sign in to comment.