diff --git a/.github/workflows/.gh-deploy.yml b/.github/workflows/.gh-deploy.yml new file mode 100755 index 0000000..d9d4d7f --- /dev/null +++ b/.github/workflows/.gh-deploy.yml @@ -0,0 +1,31 @@ +name: Build and Deploy +on: + push: + branches: + - master +jobs: + build-and-deploy: + concurrency: ci-${{ github.ref }} # Recommended if you intend to make multiple deployments in quick succession. + runs-on: ubuntu-latest + steps: + - name: Checkout 🛎️ + uses: actions/checkout@v3 + + - uses: pnpm/action-setup@v2 + name: Install pnpm + id: pnpm-install + with: + version: 7.5.1 + run_install: false + + - name: Install and Build 🔧 # This example project is built using npm and outputs the result to the 'build' folder. Replace with the commands required to build your project, or remove this step entirely if your site is pre-built. + run: | + ./linkstuff.sh + pnpm install + pnpm build + + - name: Deploy 🚀 + uses: JamesIves/github-pages-deploy-action@v4.2.5 + with: + branch: gh-pages # The branch the action should deploy to. + folder: dist # The folder the action should deploy. diff --git a/linkstuff.sh b/linkstuff.sh new file mode 100755 index 0000000..eaaafc0 --- /dev/null +++ b/linkstuff.sh @@ -0,0 +1,17 @@ +git clone https://github.com/eguneys/blah +cd blah +pnpm install +pnpm build +pnpm link --dir ./ --global +cd .. +git clone https://github.com/eguneys/lsolitaire +cd lsolitaire +pnpm install +pnpm validate +pnpm link --dir ./ --global +cd .. +git clone https://github.com/eguneys/aset +cd aset +pnpm install +pnpm bundle +pnpm link --dir ./ --global