mirror of
https://github.com/nostr-connect/connect.git
synced 2025-12-17 05:04:20 +01:00
30 lines
652 B
YAML
30 lines
652 B
YAML
name: Github Pages for Website
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
branches: [master]
|
|
|
|
jobs:
|
|
website:
|
|
runs-on: ubuntu-latest
|
|
defaults:
|
|
run:
|
|
working-directory: example
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: actions/setup-node@v2
|
|
with:
|
|
node-version: 16
|
|
- run: yarn install --frozen-lockfile
|
|
|
|
- run: yarn build
|
|
|
|
- name: Deploy to GitHub Pages
|
|
if: success()
|
|
uses: crazy-max/ghaction-github-pages@v2
|
|
with:
|
|
target_branch: gh-pages
|
|
build_dir: example/dist
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|