Skip to content

Commit

Permalink
fix: CI error (#86)
Browse files Browse the repository at this point in the history
* ci: fix #85

* ci: add workflow_dispatch

* ci: fix
  • Loading branch information
MuZhou233 authored Jan 24, 2024
1 parent e561fca commit 6f31e88
Showing 1 changed file with 9 additions and 13 deletions.
22 changes: 9 additions & 13 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ on:
# Sequence of patterns matched against refs/tags
tags:
- "v*" # Push events to matching v*, i.e. v1.0, v20.15.10

workflow_dispatch: # TODO: remove after this workflow works

jobs:
release:
Expand All @@ -13,25 +15,19 @@ jobs:

steps:
- name: Checkout Repository
uses: actions/checkout@master
uses: actions/checkout@v4

- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
default: true
run: |
rustup set profile minimal
rustup update --no-self-update stable
rustup default stable
- name: Cargo Login
uses: actions-rs/cargo@v1
with:
command: login
args: -- ${{ secrets.CARGO_TOKEN }}
run: cargo login ${{ secrets.CARGO_TOKEN }}

- name: Cargo Publish
uses: actions-rs/cargo@v1
with:
command: publish
run: cargo publish

- name: GitHub Release
id: create_release
Expand Down

0 comments on commit 6f31e88

Please sign in to comment.