remove main.yml and fix branches

This commit is contained in:
Roee Gadot
2021-06-13 08:38:20 +03:00
parent 93ebec09b9
commit f03c2adce4
2 changed files with 3 additions and 23 deletions

View File

@@ -1,21 +0,0 @@
name: Releases
on:
push:
branches:
- develop
# - my-temp-release-check
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build CLI
run: cd cli && make build-all
# - uses: ncipollo/release-action@v1
# with:
# token: ${{ secrets.GITHUB_TOKEN }}
# artifacts: "cli/bin/**/" ## ??
# commit: my-temp-release-check ## ??
# tag: v0.0.2 ## TODO: get it from a variable or function ? (should include branch name and sem ver)

View File

@@ -3,7 +3,8 @@ name: Release
on:
push:
branches:
- my-temp-release-check
- develop
- main
jobs:
build:
@@ -23,6 +24,6 @@ jobs:
- uses: ncipollo/release-action@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
artifacts: "cli/bin/**"
artifacts: "cli/bin/*"
commit: ${{ steps.version_parameters.outputs.branch }}
tag: ${{ steps.version_parameters.outputs.cal_ver }}