Skip to content

Commit

Permalink
Merge pull request #13 from swiss/feature/github-pages
Browse files Browse the repository at this point in the history
Update workflow for github pages deployment
  • Loading branch information
satefan authored Dec 15, 2023
2 parents 64cc49c + fd5a47d commit 9d486c7
Showing 1 changed file with 17 additions and 14 deletions.
31 changes: 17 additions & 14 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,30 @@

name: CI
name: Deploy to GitHub Pages

on:
push:
branches:
- main

jobs:
publish:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@main
- uses: actions/setup-node@v2
uses: actions/checkout@v2

- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: '16'
- run: npm install
- run: npm run build-css
- uses: BetaHuhn/do-spaces-action@v2

- name: Install dependencies and build static storybook
run: |
npm install
cd app
npm run build-storybook
- name: Deploy to GitHub Pages
uses: JamesIves/github-pages-deploy-action@v4
with:
access_key: ${{ secrets.ACCESS_KEY }}
secret_key: ${{ secrets.SECRET_KEY }}
space_name: ${{ secrets.SPACE_NAME }}
space_region: ${{ secrets.SPACE_REGION }}
source: dist
versioning: true
token: ${{ secrets.GITHUB_TOKEN }}
folder: app/storybook-static

0 comments on commit 9d486c7

Please sign in to comment.