fix(build): test fix for github workflow
This commit is contained in:
parent
42e4a63a6a
commit
6162e6ac58
1 changed files with 49 additions and 48 deletions
17
.github/workflows/publish.yml
vendored
17
.github/workflows/publish.yml
vendored
|
|
@ -3,7 +3,7 @@ name: Build and Publish
|
|||
on:
|
||||
push:
|
||||
tags:
|
||||
- '*'
|
||||
- "*"
|
||||
|
||||
jobs:
|
||||
publish:
|
||||
|
|
@ -14,15 +14,15 @@ jobs:
|
|||
include:
|
||||
- name: Windows
|
||||
os: windows-latest
|
||||
artifact_name: target/release/caesar.exe
|
||||
asset_name: caesar-windows
|
||||
artifact_name: caesar.exe
|
||||
asset_name: caesar-windows.exe
|
||||
- name: MacOS
|
||||
os: macos-latest
|
||||
artifact_name: target/release/caesar
|
||||
artifact_name: caesar
|
||||
asset_name: caesar-macos
|
||||
- name: Linux
|
||||
os: ubuntu-latest
|
||||
artifact_name: target/release/caesar
|
||||
artifact_name: caesar
|
||||
asset_name: caesar-linux
|
||||
|
||||
steps:
|
||||
|
|
@ -54,9 +54,10 @@ jobs:
|
|||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: ${{ matrix.asset_name }}
|
||||
path: ${{ matrix.artifact_name }}
|
||||
path: target/release/${{ matrix.artifact_name }}
|
||||
|
||||
- name: Create Release
|
||||
id: create_release
|
||||
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
|
||||
uses: actions/create-release@v1
|
||||
env:
|
||||
|
|
@ -66,7 +67,7 @@ jobs:
|
|||
release_name: Release ${{ github.ref }}
|
||||
draft: false
|
||||
prerelease: false
|
||||
body: 'Release of ${{ github.ref }}'
|
||||
body: "Release of ${{ github.ref }}"
|
||||
|
||||
- name: Upload Release Asset
|
||||
uses: actions/upload-release-asset@v1
|
||||
|
|
@ -74,6 +75,6 @@ jobs:
|
|||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
||||
asset_path: ${{ steps.upload_binaries.outputs.path }}
|
||||
asset_path: target/release/${{ matrix.artifact_name }}
|
||||
asset_name: ${{ matrix.asset_name }}
|
||||
asset_content_type: application/octet-stream
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue