diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2eeaebbe..fde52137 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -9,23 +9,15 @@ jobs: create-release: if: github.repository_owner == 'taiki-e' runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - uses: taiki-e/github-actions/create-release@main - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - publish: - if: github.repository_owner == 'taiki-e' - needs: - - create-release - runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - uses: taiki-e/github-actions/install-rust@main with: toolchain: stable - - run: | - ci/publish.sh + - run: cargo package + - uses: taiki-e/github-actions/create-release@main + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - run: cargo publish env: CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} diff --git a/Cargo.toml b/Cargo.toml index 0f308276..676d4d65 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -9,7 +9,7 @@ documentation = "https://docs.rs/auto_enums" keywords = ["enum", "macros", "derive", "attribute"] categories = ["rust-patterns"] readme = "README.md" -exclude = ["/.github", "/ci", "/scripts"] +exclude = ["/.github", "/scripts"] description = """ A library for to allow multiple return types by automatically generated enum. """ diff --git a/ci/publish.sh b/ci/publish.sh deleted file mode 100755 index 5bc2bda5..00000000 --- a/ci/publish.sh +++ /dev/null @@ -1,20 +0,0 @@ -#!/bin/bash - -set -euo pipefail -IFS=$'\n\t' - -cd "$(cd "$(dirname "${0}")" && pwd)"/.. - -set -x - -( - cd core - cargo publish -) -( - cd derive - cargo publish -) - -sleep 30 -cargo publish