fix: use gh action #6
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: Master build | |
# trigger on push to master | |
on: | |
push: | |
branches: | |
- master | |
workflow_dispatch: | |
jobs: | |
relase: | |
name: Release | |
runs-on: ubuntu-latest | |
permissions: | |
contents: 'write' | |
pull-requests: 'write' | |
steps: | |
- uses: actions/checkout@v3 | |
id: checkout | |
- uses: actions/setup-node@v3 | |
id: setup-node | |
- name: Install dependencies | |
run: npm install | |
- name: Build | |
run: npm run build | |
- name: Publish to Kapeta | |
id: kapeta-registry-push | |
uses: kapetacom/core-registry-action@v3 | |
with: | |
credentials: ${{ secrets.KAPETA_TOKEN }} | |
action: publish | |
- name: slack - GitHub Actions Slack integration | |
uses: act10ns/slack@v2.0.0 | |
with: | |
webhook-url: ${{ secrets.SLACK_WEBHOOK_URL }} | |
status: ${{ job.status }} | |
steps: ${{ toJson(steps) }} | |
channel: '#github-actions' | |