Release 1.0.0 #27
Workflow file for this run
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: Release | |
on: | |
push: | |
tags: | |
- v*.*.* | |
env: | |
GO_VERSION: '1.20' | |
jobs: | |
publish: | |
name: Release CoreDNS with DNSimple Plugin | |
runs-on: ubuntu-latest | |
steps: | |
- name: Wait for tests to succeed | |
uses: lewagon/[email protected] | |
with: | |
ref: 'refs/heads/main' | |
check-name: 'Run tests' | |
repo-token: ${{ secrets.GITHUB_TOKEN }} | |
wait-interval: 10 | |
allowed-conclusions: success | |
- uses: actions/checkout@v4 | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version-file: 'go.mod' | |
- name: Build CoreDNS with DNSimple Plugin | |
run: | | |
git clone https://github.com/coredns/coredns | |
pushd coredns | |
pluginDir="$PWD/plugin/dnsimple" | |
mkdir -p plugin/dnsimple | |
cp ../*.go plugin/dnsimple | |
cp ../go.mod plugin/dnsimple | |
sed -i "/^go ${{env.GO_VERSION}}/a replace github.com/dnsimple/coredns-dnsimple => $pluginDir" go.mod | |
sed -i '/route53:route53/i dnsimple:github.com\/dnsimple\/coredns-dnsimple' plugin.cfg | |
GOFLAGS=-mod=mod go generate | |
go mod tidy | |
cp ../Makefile.release . | |
make release -f Makefile.release | |
popd | |
- name: Release | |
uses: softprops/action-gh-release@v1 | |
with: | |
files: coredns/release/*.tar.gz |