From a91607b4e1673b61ae0c2dfd184689c9fde9f937 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Fri, 15 Nov 2019 14:18:46 +0100 Subject: [PATCH] seperate test and release --- .github/workflows/release.yml | 5 ++++- .github/workflows/test.yml | 20 ++++++++++++++++++++ 2 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ba71565..04a374e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,5 +1,8 @@ name: Release -on: push +on: + push: + branches: + - master jobs: release: runs-on: ubuntu-18.04 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..ab54a86 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,20 @@ +name: Test +on: + push: + branches: + - !master +jobs: + release: + runs-on: ubuntu-18.04 + steps: + - name: Source checkout + uses: actions/checkout@v1 + with: + fetch-depth: 1 + - name: Release + shell: bash + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + echo "Insert Go test & Build Here" ## Insert Go test & Build Here + npx semantic-release \ No newline at end of file