Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove old release workflow #111

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
86 changes: 1 addition & 85 deletions .github/workflows/merge-master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,92 +17,8 @@ jobs:

- uses: actions/checkout@v2

- uses: anothrNick/github-tag-action@1.17.2
- uses: anothrNick/github-tag-action@1.35.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DEFAULT_BUMP: patch
WITH_V: true

build:
name: Build
needs: [tag]
runs-on: ubuntu-latest
steps:

- uses: actions/setup-go@v1
with:
go-version: 1.13.x

- uses: actions/checkout@v2

# Because the GITHUB_REF will be refs/heads/master,
# We need to get the tag for the current commit
# git describe --tags
- name: Get the version
id: tag
shell: bash
run: |
git pull
git fetch --depth=1 origin +refs/tags/*:refs/tags/*
echo ::set-output name=result::$(git describe --tags)

- uses: actions/cache@v1
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-

- shell: bash
env:
OS: ${{ runner.os }}
TAG: ${{ steps.tag.outputs.result }}
run: |
go build -o terraform-provider-infoblox_${TAG} -mod=vendor
mkdir build
zip build/terraform-provider-infoblox.zip terraform-provider-infoblox_${TAG}

- uses: actions/upload-artifact@v1
with:
name: build
path: build

release:
runs-on: ubuntu-latest
needs: [build]
steps:

- uses: actions/checkout@v2

# Because the GITHUB_REF will be refs/heads/master,
# We need to get the tag for the current commit
# git describe --tags

- name: Get the version
id: tag
shell: bash
run: |
git pull
git fetch --depth=1 origin +refs/tags/*:refs/tags/*
echo ::set-output name=result::$(git describe --tags)

- uses: actions/download-artifact@v1
with:
name: build
path: build

- uses: ncipollo/release-action@v1
with:
tag: ${{ steps.tag.outputs.result }}
draft: true
prerelease: true
artifacts: "build/*" # Output path of Go build from the Merge Master workflow
body: |
# Release ${{ steps.tag.outputs.result }}

## Features
- here

## Fixes
- here
token: ${{ secrets.GITHUB_TOKEN }}