Skip to content

Commit

Permalink
Merge pull request #2 from instride-ch/Simon-Drohsen-patch-1-1
Browse files Browse the repository at this point in the history
Create deploy.yml
  • Loading branch information
Simon-Drohsen authored Aug 22, 2024
2 parents c90191c + 6b2f700 commit 6c42d2d
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Deployment

on:
push:
branches:
- main

jobs:
deployment:
runs-on: ubuntu-latest
environment: production
concurrency: production
steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '18'

- name: Install dependencies
run: yarn install

- name: Build project
run: yarn build

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

0 comments on commit 6c42d2d

Please sign in to comment.