From a232f4bc71721f5d3b5f76f8df500304602714f5 Mon Sep 17 00:00:00 2001 From: Mike Elsmore Date: Thu, 18 Apr 2024 10:16:16 -0600 Subject: [PATCH] Revamp the file, see if this works --- .github/workflows/publish-to-crates.yml | 50 +++++++++++++------------ 1 file changed, 27 insertions(+), 23 deletions(-) diff --git a/.github/workflows/publish-to-crates.yml b/.github/workflows/publish-to-crates.yml index c02e8c5..5af8409 100644 --- a/.github/workflows/publish-to-crates.yml +++ b/.github/workflows/publish-to-crates.yml @@ -1,24 +1,28 @@ +name: Publish to Cargo + on: - push: - # Pattern matched against refs/tags - tags: - - '*' # Push events to every tag not containing / - workflow_dispatch: - name: Publish - jobs: - publish: - name: Publish - runs-on: ubuntu-latest - steps: - - name: Checkout sources - uses: actions/checkout@v2 - - - name: Install stable toolchain - uses: actions-rs/toolchain@v1 - with: - profile: minimal - toolchain: stable - override: true - - run: cargo publish --token ${CRATES_TOKEN} - env: - CRATES_TOKEN: ${{ secrets.CRATES_TOKEN }} \ No newline at end of file + push: + tags: + - '*' + +env: + CRATES_TOKEN: ${{ secrets.CRATES_TOKEN }} + +jobs: + publish-crate: + runs-on: ubuntu-latest + steps: + - name: Git checkout + uses: actions/checkout@v3 + + - name: Install stable toolchain + uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: stable + override: true + + - name: Publish to Cargo + run: cargo publish --token ${CRATES_TOKEN} + env: + CRATES_TOKEN: ${{ secrets.CRATES_TOKEN }} \ No newline at end of file