Skip to content

Commit

Permalink
fix: break the loop when an error occurs
Browse files Browse the repository at this point in the history
  • Loading branch information
I-Want-ToBelieve committed Dec 6, 2023
1 parent 3ff7ceb commit 155eb7b
Show file tree
Hide file tree
Showing 7 changed files with 70 additions and 30 deletions.
9 changes: 0 additions & 9 deletions .github/workflows/ci.yml

This file was deleted.

55 changes: 35 additions & 20 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,37 @@
---
name: Release
name: Release

on:
push:
branches:
- main
- next
- next-major
- beta
- alpha
- "[0-9]+.[0-9]+.x"
- "[0-9]+.x"
on:
push:
branches:
- main

jobs:
release:
uses: semantic-release-action/rust/.github/workflows/release-binary.yml@v5
with:
targets: |
x86_64-unknown-linux-gnu
secrets:
cargo-registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true

- name: Build
run: cargo build --release

- name: Run tests
run: cargo test

- name: Install cargo-release
run: cargo install cargo-release

- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
run: |
git config user.name I-Want-ToBelieve
git config user.email [email protected]
cargo release --execute
1 change: 1 addition & 0 deletions .pre-commit-config.yaml
3 changes: 3 additions & 0 deletions .releaserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"branches": ["main", "next"]
}
19 changes: 19 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
// 使用 IntelliSense 了解相关属性。
// 悬停以查看现有属性的描述。
// 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "start",
"skipFiles": ["<node_internals>/**"],
"preLaunchTask": "build",
"program": "${workspaceFolder}/apps/yakite-daemon/dist/bin/yakite-daemon.js",
"outFiles": [
"${workspaceFolder}/apps/yakite-daemon/dist/**/*.js"
]
}
]
}
11 changes: 11 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "build",
"type": "shell",
"command": "pnpm -r build",
"problemMatcher": []
}
]
}
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "autohide-tdrop"
version = "1.0.2"
version = "1.0.3"
edition = "2021"
description = "100% pure rust implementation that can automatically hide terminals or other applications managed by tdrop when they lose focus"
authors = ["backtolife2021"]
Expand Down

0 comments on commit 155eb7b

Please sign in to comment.