Skip to content

Commit

Permalink
Merge pull request #478 from adopted-ember-addons/demo-site
Browse files Browse the repository at this point in the history
add an action to release demo site
  • Loading branch information
mansona authored May 16, 2024
2 parents db4df76 + 129293b commit 9914359
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: GitHub Pages

on:
push:
branches:
- main

jobs:
deploy:
runs-on: ubuntu-latest
permissions:
contents: write
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v3
with:
version: 9
- name: Install Node
uses: actions/setup-node@v4
with:
node-version: 18.x
- name: Install Dependencies
run: pnpm install --frozen-lockfile
- name: Build
run: pnpm run build
working-directory: test-app
- name: Deploy
uses: peaceiris/actions-gh-pages@v4
if: github.ref == 'refs/heads/main'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./test-app/dist

0 comments on commit 9914359

Please sign in to comment.