diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..535eee2 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,21 @@ +name: build-and-publish + +on: [push] + +jobs: + build: + runs-on: macos-latest + steps: + - uses: actions/checkout@v2 + - name: Show Xcode version + run: xcodebuild -version + - name: Build + run: make build + - name: Create distribution file + run: make dist + - name: Release + uses: softprops/action-gh-release@v1 + if: startsWith(github.ref, 'refs/tags/v') + with: + prerelease: ${{ endsWith(github.ref, '-pre') }} + files: build/*.zip diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 9f81ad8..0000000 --- a/.travis.yml +++ /dev/null @@ -1,38 +0,0 @@ -language: objective-c -os: osx -osx_image: xcode10.1 # macOS 10.13 (https://docs.travis-ci.com/user/reference/osx/) - -sudo: required - -branches: - only: - - master - - /^v[\d\.]+$/ - -cache: - directories: - - vendor/bundle - - Pods - -script: - - make build - -before_deploy: - - make build - - make dist - -deploy: - provider: releases - api_key: - secure: bxwlTFzjVhHMNriuOKwqPt42bFWkMXnAMgYIOQI1atW8nvRGFCKtTAk4HnNSKcOJf+wcp9iB72kfaS3a0tDe06plRMzeKtRVuxlrCS/+Z8nYUDwHrY1mQZo0LVBbf2oeu/67CZ93WLwhmJAPA03qE++cGKhpVZGQWeYbQ7zN7YOVAXLs/CTXdv4FHQNrGM5afqYrndcmEqoO0ynhTbmecxhGlaCxiNfo2cUJoQy8Iac2l13g4eKC4awiixSxsdewRS9K0KvP1+L6SiTfP6IWtbxQyMUKjDR/7ul08eopdsEJorQ58YXZ3cBZm/Mov8M8hZp2AkRKTlnsq/EudN4NEPTkhrfDKWmlyc/uB3D8fJcVcPNmM1auieIpld5lGItbj1zcaQmfgOqZhcFDg3mkbWfgfjH0QTzaD6rKrS9oDXitruOQ3DChz4GnAuf47/w0xxnhNpb48ZLA8qXrW1hww0dhmHa9jfiF+OaRs3aSUTYMn2oEmnN7GWY1keqm7681Nio8knoCUfpGrrrtFlIZS1yE9BjP17iYEn7uTme0gRyXCqE8KHwPC84BGbi/jtIvcUgEqC2TwF7LUxtk9oYNNQOY+2/bhY6J7FUbnkkCLzdBfn+mo9fDlZ1w3cPMIMRG5huTpQ8It3Tqlv2BjnFiKm2G35YWu3g7qCmh2MEpPp0= - skip_cleanup: true - file_glob: true - file: build/*.zip - on: - tags: true - repo: creasty/Keyboard - -notifications: - email: false - slack: - secure: hEYbhNFw2o9hZV1+AbJIWP/4Sg5+wT7Oz2VydBVjyqRh1njdI4ntqsmC+NUmaqr3ory3AJTf+TZmAfySPk2eR2Ifudgk+MeBypt706l3UBxV0u+gVnXVpl8Yh0XklInE6+xIt95o3+uzH41xKDhDM8Pac4cWbaDao7eQz/9BBTTexfG2gijWPOUnbVpzztoHjdvSJoLq7CBMLbBti3yYIpX0/v9ekVfKPA8EcSuwPigaZtWbQOx368nGlZDAOrp1o8aMSK+ojUtWRvDhkflr7jCu3xHpAZe/y3ZDvYPgCQQuoXibZvIIYdcvVOt0/+1sq5Srod1yhZi48/mPNOrxZC9uwG0FZdkWFZkLrWSYIBWDXvrUEJawSKxbCaYEYZz1C5J0JkVxfM08UnvGzOMBk6a5tOtL6v0E/kxHZ066f35Qo9VnXIl8MHGEA9TpvbBDheva3+Rumu2DOg0AirnznR2JZcggcnu9jvNYWLsXgG1yf+g02NWVJi9PCzXo53pUi5KUutZFvhH6JSi/Jsfi/omu6/0PeHBFknu8XwgNM+Ynp8iSZKWFhQiAWwDwcWbNpYqJOoEW5kvCfmItFmb6yVFQ2/eXs/5F64VEAg8ZGV2mOXGObJi3zfghkhLfyRZucoxSagnJtHao3qdQz0qiejtBPTTDTB+T8L1tSqFmE7M= diff --git a/README.md b/README.md index e518eaf..6d9264a 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ Keyboard ======== -[![Build Status](https://travis-ci.com/creasty/Keyboard.svg?branch=master)](https://travis-ci.com/creasty/Keyboard) +[![Build Status](https://github.com/creasty/Keyboard/actions/workflows/build/badge.svg)](https://github.com/creasty/Keyboard/actions/workflows/build.yml) [![GitHub release](https://img.shields.io/github/release/creasty/Keyboard.svg)](https://github.com/creasty/Keyboard/releases) [![License](https://img.shields.io/github/license/creasty/Keyboard.svg)](./LICENSE)