Skip to content

Commit

Permalink
Update main.yml (#176)
Browse files Browse the repository at this point in the history
* Update main.yml

add build test job to main

* Update main.yml
  • Loading branch information
alexpeterson91 authored May 2, 2024
1 parent d2038d8 commit 3c7c019
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,28 @@
name: "Release"
name: "Main"
on:
workflow_dispatch:
pull_request:
push:
branches:
- "master"
- "main"
- "v[0-9]+.[0-9]+.[0-9]+"

paths-ignore:
- "README.md"

jobs:
build-test:
name: Build Test
runs-on: ubuntu-latest
if: github.event_name != 'push'
steps:
- uses: actions/checkout@v3
- run: npx @dappnode/dappnodesdk build --skip_save

release:
name: Release
runs-on: ubuntu-latest
if: github.event_name == 'push'
steps:
- uses: actions/checkout@v3
- name: Publish
Expand Down

0 comments on commit 3c7c019

Please sign in to comment.