Skip to content

Commit

Permalink
Create deploy-public.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
goldbuick authored Apr 19, 2024
1 parent 7918ee2 commit 5b66d54
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/deploy-public.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: build and deploy

on:
push:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest
name: build and push to deploy branch
steps:
- name: checkout
uses: actions/checkout@v4

- name: setup node
uses: actions/setup-node@v4
with:
node-version-file: .nvmrc

- name: setup and build
run: yarn build

- name: Push
uses: s0/git-publish-subdir-action@develop
env:
REPO: self
BRANCH: public # The branch name where you want to push the assets
FOLDER: dist # 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

0 comments on commit 5b66d54

Please sign in to comment.