Skip to content

Commit

Permalink
Merge pull request #25 from emberist/feat/release-ci
Browse files Browse the repository at this point in the history
feat/release ci
  • Loading branch information
emberist authored May 22, 2024
2 parents c3af87c + fa52aaa commit d463d43
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 17 deletions.
41 changes: 29 additions & 12 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,20 +17,37 @@ jobs:
with:
token: ${{ secrets.GH_TOKEN }}
release-type: rust

create-release:
name: Release ${{ matrix.target }}
runs-on: ubuntu-latest
needs: release-please
strategy:
matrix:
include:
- target: x86_64-pc-windows-gnu
archive: zip
- target: x86_64-unknown-linux-musl
archive: tar.gz tar.xz tar.zst
- target: x86_64-apple-darwin
archive: zip
if: ${{ needs.release-please.outputs.release_created }}
steps:
- name: Checkout repository
if: ${{ steps.release.outputs.release_created }}
uses: actions/checkout@v3

- name: Install Rust
if: ${{ steps.release.outputs.release_created }}
uses: dtolnay/rust-toolchain@stable

- name: Build
run: |
cargo build --release
- name: Upload Release Artifact
if: ${{ steps.release.outputs.release_created }}
- name: Compile and release
id: compile
uses: rust-build/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
run: gh release upload ${{ steps.release.outputs.tag_name }} ./target/release/mrburns
with:
RUSTTARGET: ${{ matrix.target }}
ARCHIVE_TYPES: ${{ matrix.archive }}

- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: Binary
path: |
${{ steps.compile.outputs.BUILT_ARCHIVE }}
${{ steps.compile.outputs.BUILT_CHECKSUM }}
5 changes: 0 additions & 5 deletions src/task_connectors/github/models.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,6 @@ impl BaseTask for GithubIssue {
}
}

#[derive(Debug, Deserialize)]
pub struct Data<T> {
pub data: T,
}

impl GithubIssue {
pub async fn fetch(repo: &str, issue_id: &u64) -> anyhow::Result<Self> {
let github_token =
Expand Down

0 comments on commit d463d43

Please sign in to comment.