Skip to content

Commit

Permalink
Merge pull request #7 from inosion/ci
Browse files Browse the repository at this point in the history
Ci
  • Loading branch information
rbuckland authored Jun 8, 2021
2 parents dcf55cc + b9801d4 commit f727393
Showing 1 changed file with 29 additions and 7 deletions.
36 changes: 29 additions & 7 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,27 @@
name: GitHub Actions Demo
on: [push]
name: Publish
on:
push:
branches:
- master
tags:
- v*
jobs:
Explore-GitHub-Actions:
runs-on: ubuntu-latest
publish:
name: Publish for ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: ubuntu-latest
artifact_name: madato
asset_name: madato-linux-amd64
- os: windows-latest
artifact_name: madato.exe
asset_name: madato-windows-amd64
- os: macos-latest
artifact_name: madato
asset_name: madato-macos-amd64
steps:
- run: echo "🎉 job triggered by ${{ github.event_name }} event."
- run: echo "🐧 job is running on ${{ runner.os }} server"
- run: echo "🔎 branch is ${{ github.ref }}, repository is ${{ github.repository }}."
- name: Check out repository code
uses: actions/checkout@v2
Expand All @@ -21,5 +37,11 @@ jobs:
with:
command: build
args: --release --all-features
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: target/release/${{ matrix.artifact_name }}
asset_name: ${{ matrix.asset_name }}
tag: ${{ github.ref }}
- run: echo "🍏 This job's status is ${{ job.status }}."

0 comments on commit f727393

Please sign in to comment.