Skip to content

Commit

Permalink
Merge pull request #11 from web-platform-dx/deploy
Browse files Browse the repository at this point in the history
Build and deploy the site to the gh-pages branch
  • Loading branch information
captainbrosset authored Jun 19, 2024
2 parents ae81f8c + 5538e1e commit 0b940c7
Show file tree
Hide file tree
Showing 449 changed files with 29 additions and 137,722 deletions.
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
name: Generate site
name: Bump dependencies

on:
workflow_dispatch:
schedule:
- cron: '0 0 * * *'

jobs:
build:
bump:
runs-on: ubuntu-latest

steps:
Expand All @@ -19,13 +19,10 @@ jobs:
npm install
npm update web-features
- name: Generate site
run: npm run build

- name: Commit dependency changes
run: |
git config --local user.email "${{ github.actor }}@users.noreply.github.com"
git config --local user.name "${{ github.actor }}"
git add .
git commit -m "Bump deps and update site" --allow-empty
git commit -m "Bump deps" --allow-empty
git push origin main
25 changes: 25 additions & 0 deletions .github/workflows/generate-site.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Build and deploy site

on:
workflow_dispatch:
push:
branches: [main]

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Check-out the repository
uses: actions/checkout@v2

- name: Install dependencies
run: npm ci

- name: Generate site
run: npm run build

- name: Deploy to GitHub Pages
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: docs
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
node_modules
docs
Loading

0 comments on commit 0b940c7

Please sign in to comment.