build: cleanup workflow files. publish on changes to main
#1
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
name: Build and deploy to permaweb | |
on: | |
#allows manual triggering from Actions tab | |
workflow_dispatch: | |
push: | |
branches: [main] | |
jobs: | |
publish: | |
name: Publish to permaweb | |
runs-on: ubuntu-latest | |
env: | |
DEPLOY_KEY: ${{ secrets.DEPLOY_KEY }} | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: "20.x" | |
- run: npm ci | |
- run: npm run build | |
- run: npm run deploy |