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

on:
push:
branches:
- master

workflow_dispatch:

permissions:
contents: read
pages: write
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 run 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/
Loading

0 comments on commit c09a276

Please sign in to comment.