Skip to content

Commit

Permalink
Split release process into two jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
craigjbass authored Apr 12, 2020
1 parent 282fcec commit 86a6a6a
Showing 1 changed file with 19 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,34 @@ on:
tags:
- 'v*'

name: Rust Linux Release
name: Rust Release

jobs:
build:
name: Release
name: Build Release Linux
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@master
- name: Run the tests
run: cargo test
- name: Build
run: cargo build --release
run: cargo build --release && mv ./target/release/aws-profile-vault ./target/release/aws-profile-vault-linux-x86_64
- name: Share artefact with Upload job
uses: actions/upload-artifact@v1
with:
name: aws-profile-vault-linux-x86_64
path: ./target/release/aws-profile-vault-linux-x86_64

upload:
name: Upload Artefacts
needs: build
runs-on: ubuntu-latest
steps:
- name: Grab Linux artefact for Release
uses: actions/download-artifact@v1
with:
name: aws-profile-vault-linux-x86_64
- name: Create Release
id: create_release
uses: actions/create-release@latest
Expand All @@ -33,6 +48,6 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./target/release/aws-profile-vault
asset_path: ./target/release/aws-profile-vault-linux-x86_64
asset_name: aws-profile-vault-linux-x86_64
asset_content_type: application/octet-stream

0 comments on commit 86a6a6a

Please sign in to comment.