Skip to content

Commit

Permalink
use environment
Browse files Browse the repository at this point in the history
  • Loading branch information
steinuil committed Jul 12, 2021
1 parent eaaa1bb commit 8f05dcb
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,19 @@ jobs:
matrix:
include:
- os: ubuntu-latest
copy_artifacts: mkdir dist && cp target/release/get_keys target/release/twitter mpv-livetweet.lua dist
copy_artifacts: cp target/release/get_keys target/release/twitter mpv-livetweet.lua dist
artifact_name: build_linux
- os: macos-latest
copy_artifacts: mkdir dist && cp target/release/get_keys target/release/twitter mpv-livetweet.lua dist
copy_artifacts: cp target/release/get_keys target/release/twitter mpv-livetweet.lua dist
artifact_name: build_macos
- os: windows-latest
copy_artifacts: mkdir dist ; cp target/release/get_keys.exe,target/release/twitter.exe,mpv-livetweet.lua dist
copy_artifacts: cp target/release/get_keys.exe,target/release/twitter.exe,mpv-livetweet.lua dist
artifact_name: build_windows

runs-on: ${{ matrix.os }}

environment: Twitter

steps:
- name: Checkout
uses: actions/checkout@v2
Expand All @@ -39,6 +42,9 @@ jobs:
command: build
args: --release

- name: Create dist directory
run: mkdir dist

- name: Copy artifacts to dist
run: ${{ matrix.copy_artifacts }}

Expand Down

0 comments on commit 8f05dcb

Please sign in to comment.