Skip to content

Commit

Permalink
git workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
SamueleA committed Sep 7, 2023
1 parent fc15a70 commit ee98a90
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 1 deletion.
32 changes: 32 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: build dapp

on:
push:
branches:
- master

jobs:
build:
runs-on: ubuntu-latest
name: Build and Push
steps:
- name: git-checkout
uses: actions/checkout@v3

- name: Setup PNPM
uses: pnpm/action-setup@v2
with:
version: 8
run_install: true

- name: Build
run: pnpm build && pnpm build:react

- name: Push
uses: s0/git-publish-subdir-action@develop
env:
REPO: self
BRANCH: build
FOLDER: examples/react/dist
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
MESSAGE: 'Build: ({sha}) {msg}'
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
"coverage": "rimraf ./coverage && rimraf ./.nyc_output && nyc pnpm test",
"dev": "preconstruct dev",
"postinstall": "preconstruct dev",
"start:react": "pnpm --filter @0xsequence/kit-example-react start"
"start:react": "pnpm --filter @0xsequence/kit-example-react start",
"build:react": "pnpm --filter @0xsequence/kit-example-react build"
},
"devDependencies": {
"@babel/core": "^7.20.2",
Expand Down

0 comments on commit ee98a90

Please sign in to comment.