Skip to content

Commit

Permalink
feature: github actions.
Browse files Browse the repository at this point in the history
  • Loading branch information
James Moriarty committed Jan 19, 2020
1 parent de02147 commit c422655
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 18 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Continuous Integration

on: [push]

jobs:
script:

runs-on: macos-latest

steps:

- uses: actions/checkout@v2

- run: ./bin/build
37 changes: 37 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Release

on:
push:
# Sequence of patterns matched against refs/tags
tags:
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10

jobs:
script:

runs-on: macos-latest

steps:

- uses: actions/checkout@v2

- run: ./bin/build

- uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: false
prerelease: false
id: create_release

- uses: actions/upload-release-asset@v1.0.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
asset_path: ./dist/Alpaca.zip
asset_name: Alpaca.zip
asset_content_type: application/zip
18 changes: 0 additions & 18 deletions .travis.yml

This file was deleted.

0 comments on commit c422655

Please sign in to comment.