Skip to content

Commit

Permalink
Clean up release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
taiki-e committed Jan 5, 2021
1 parent 5ce4ecb commit 9a2f28f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 34 deletions.
18 changes: 5 additions & 13 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
"""
Expand Down
20 changes: 0 additions & 20 deletions ci/publish.sh

This file was deleted.

0 comments on commit 9a2f28f

Please sign in to comment.