added casper to v3 #1042
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# .github/workflows/publish.yml | |
name: Generate a build and push to another branch | |
on: | |
push: | |
branches: | |
- "*" | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
name: Build and Push | |
steps: | |
- name: git-checkout | |
uses: actions/checkout@v2 | |
- name: setup node.js | |
uses: actions/setup-node@v2.4.0 | |
with: | |
node-version: 16.x | |
# cache: yarn | |
# cache-dependency-path: yarn.lock | |
- name: dep | |
run: yarn | |
- name: build | |
run: yarn build | |
- name: Generate Docs | |
run: npx typedoc --out docs src/index.ts | |
- name: prepare package | |
run: mkdir out && mv package.json out && mv dist out && mv README.md out && mv LICENSE out && mv docs out | |
- name: Prepare Production Release | |
uses: s0/git-publish-subdir-action@develop | |
if: ${{ github.ref == 'refs/heads/production' }} | |
env: | |
REPO: self | |
BRANCH: bleeding-edge | |
FOLDER: out | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
MESSAGE: "Build: ({sha}) {msg}" | |
- name: Prepare Testnet Release | |
uses: s0/git-publish-subdir-action@develop | |
if: ${{ github.ref == 'refs/heads/testnet' }} | |
env: | |
REPO: self | |
BRANCH: testnet-dist | |
FOLDER: out | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
MESSAGE: "Build: ({sha}) {msg}" |