diff --git a/.circleci/config.yml b/.circleci/config.yml deleted file mode 100644 index ca349a4..0000000 --- a/.circleci/config.yml +++ /dev/null @@ -1,9 +0,0 @@ -version: 2 -jobs: - build: - machine: true - steps: - - checkout - - run: - name: Build container (which includes running tests) - command: docker build -t interline-io/planetutils:$CIRCLE_BRANCH . diff --git a/.github/workflows/test-and-release-notes.yaml b/.github/workflows/test-and-release-notes.yaml new file mode 100644 index 0000000..64a8afb --- /dev/null +++ b/.github/workflows/test-and-release-notes.yaml @@ -0,0 +1,29 @@ +name: "Test & Release Notes" +on: + push: + branches: + - '*' + release: + types: + - created +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Build container (which includes running tests) + run: docker build . + # Docker Hub does actual build for release + release-notes: + needs: test + if: ${{ github.event_name == 'release' }} + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v1 + with: + node-version: '12.x' + - run: npm install github-release-notes -g + - run: gren release --override + env: + GREN_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/README.md b/README.md index 4e68015..6189f37 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,5 @@ [![current release version](https://img.shields.io/github/release/interline-io/planetutils.svg)](https://github.com/interline-io/planetutils/releases) [![Docker Hub container image build status](https://img.shields.io/docker/cloud/build/interline/planetutils.svg)](https://hub.docker.com/r/interline/planetutils/) -[![CircleCI code test status](https://circleci.com/gh/interline-io/planetutils.svg?style=svg)](https://circleci.com/gh/interline-io/planetutils) # Interline PlanetUtils