Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
thesandybridge committed Jan 25, 2023
1 parent 7b41bed commit 1d92498
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Rust

on:
release:
types: [created]
types: [created]

jobs:
build:
Expand All @@ -20,14 +20,14 @@ jobs:
override: true

- name: Build
run: cargo build --all --release && strip target/release/PROJECT_NAME && mv target/release/PROJECT_NAME target/release/PROJECT_NAME_amd64
run: cargo build --all --release && strip target/release/wpengine_cli_v2 && mv target/release/wpengine_cli_v2 target/release/wpengine_cli_v2_amd64

- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
target/release/PROJECT_NAME_amd64
target/release/wpengine_cli_v2_amd64
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Expand All @@ -52,7 +52,7 @@ jobs:
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: target/release/PROJECT_NAME.exe
files: target/release/wpengine_cli_v2.exe
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Expand All @@ -72,14 +72,14 @@ jobs:
override: true

- name: Build for mac
run: cargo build --all --release && strip target/release/PROJECT_NAME && mv target/release/PROJECT_NAME target/release/PROJECT_NAME_darwin
run: cargo build --all --release && strip target/release/wpengine_cli_v2 && mv target/release/wpengine_cli_v2 target/release/wpengine_cli_v2_darwin

- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
target/release/PROJECT_NAME_darwin
target/release/wpengine_cli_v2_darwin
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 1d92498

Please sign in to comment.