Skip to content

Commit

Permalink
Create staging-to-pages.yml
Browse files Browse the repository at this point in the history
Test action to deploy staging branch to GitHub pages
  • Loading branch information
hmaier-fws committed Jan 29, 2025
1 parent d29b0ff commit bd27ade
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/staging-to-pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Deploy staging to GitHub Pages

on:
push:
branches:
- staging

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: '16'

- name: Install Dependencies
run: yarn install

- name: Build
run: yarn build

- name: Upload build artifacts
uses: actions/upload-artifact@v4
with:
name: build-output
path: dist

deploy:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Download build artifacts
uses: actions/download-artifact@v4
with:
name: build-output
path: dist

- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist

0 comments on commit bd27ade

Please sign in to comment.