Skip to content

Commit

Permalink
New workflow.
Browse files Browse the repository at this point in the history
  • Loading branch information
scheuclu committed Jun 20, 2023
1 parent fc2256e commit e7e6934
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 43 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/build-dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Deploy to GitHub Pages

on:
push:
branches:
- main
# Review gh actions docs if you want to further define triggers, paths, etc
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#on

permissions:
contents: write

jobs:
deploy:
name: Deploy to GitHub Pages
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
cache: npm

- name: Install dependencies
run: npm ci
- name: Build website
run: npm run build

- name: Push
uses: s0/git-publish-subdir-action@develop
env:
REPO: self
BRANCH: build-dev # The branch name where you want to push the assets
FOLDER: build # The directory where your assets are generated
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # GitHub will automatically add this - you don't need to bother getting a token
MESSAGE: "Build: ({sha}) {msg}" # The commit message
43 changes: 0 additions & 43 deletions .github/workflows/deploy.old

This file was deleted.

0 comments on commit e7e6934

Please sign in to comment.