Skip to content

Commit

Permalink
chore: hit github action more accurately
Browse files Browse the repository at this point in the history
  • Loading branch information
I-Want-ToBelieve committed Nov 25, 2023
1 parent 84a7ce5 commit 12b13f7
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 25 deletions.
12 changes: 12 additions & 0 deletions .changeset/dirty-apples-smell.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
"krohnkite-core": patch
"yakite": patch
"yakite-bridge": patch
"yakite-config": patch
"yakite-daemon": patch
"yakite-message": patch
"yakite-toast": patch
"yakite-yabai": patch
---

chore: hit github action more accurately
31 changes: 9 additions & 22 deletions .github/workflows/release-bin.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,11 @@
name: ReleaseBin

on:
release:
types: [created]
push:
tags:
- 'yakite-toast*'

jobs:
check_tag:
runs-on: ubuntu-latest
steps:
- name: Check if tag matches yakite-toast@
run: |
if [[ "${{ github.event.release.tag_name }}" =~ ^yakite-toast@ ]]; then
echo "Tag matches yakite-toast@, proceeding with the workflow."
else
echo "Tag does not match yakite-toast@, stopping the workflow."
exit 1
fi
upload:
runs-on: macos-latest
steps:
Expand Down Expand Up @@ -46,14 +36,11 @@ jobs:
- name: Build
run: yakite-toast:build

- name: Upload Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Upload Binaries To Release
uses: svenstaro/upload-release-action@v2
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ./apps/yakite-toast/dist/yakite-toast
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ./apps/yakite-toast/dist/yakite-toast
asset_name: yakite-toast
asset_content_type: application/octet-stream

tag: ${{ github.ref }}
7 changes: 4 additions & 3 deletions .github/workflows/release-crates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ name: Publish to Crates.io

on:
push:
tags:
- 'yakite@*' # only [email protected]
tags-ignore: # only [email protected]
- 'yakite-*'
- 'krohnkite-core*'

jobs:
publish:
Expand Down Expand Up @@ -37,6 +38,6 @@ jobs:
run: cd $DEVENV_ROOT/apps/yakite; cargo build --release


- name: Publish to Crates.io
- name: Publish To Crates.io
run: cd $DEVENV_ROOT/apps/yakite; cargo publish --token ${{ secrets.CRATES_IO_TOKEN }}

0 comments on commit 12b13f7

Please sign in to comment.