diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 14b82cb..36e6fc0 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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: @@ -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