Skip to content

Commit

Permalink
ci: automate creation of GitHub releases and tags
Browse files Browse the repository at this point in the history
  • Loading branch information
galargh committed Jul 23, 2024
1 parent c2e3fcd commit 2590f9b
Show file tree
Hide file tree
Showing 2 changed files with 124 additions and 0 deletions.
62 changes: 62 additions & 0 deletions .github/workflows/release-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
name: Release Checker

on:
pull_request_target:
paths: [
"dispatch_examples/greeter/Cargo.toml",
"frc42_dispatch/Cargo.toml",
"frc42_dispatch/hasher/Cargo.toml",
"frc42_dispatch/macros/Cargo.toml",
"frc42_dispatch/macros/example/Cargo.toml",
"frc46_token/Cargo.toml",
"frc53_nft/Cargo.toml",
"fvm_actor_utils/Cargo.toml",
"fvm_dispatch_tools/Cargo.toml",
"testing/integration/Cargo.toml",
"testing/test_actors/Cargo.toml",
"testing/test_actors/actors/basic_nft_actor/Cargo.toml",
"testing/test_actors/actors/basic_receiving_actor/Cargo.toml",
"testing/test_actors/actors/basic_token_actor/Cargo.toml",
"testing/test_actors/actors/basic_transfer_actor/Cargo.toml",
"testing/test_actors/actors/frc46_factory_actor/Cargo.toml",
"testing/test_actors/actors/frc46_test_actor/Cargo.toml",
"testing/test_actors/actors/frc53_test_actor/Cargo.toml",
"testing/test_actors/actors/frc46_factory_token/token_impl/Cargo.toml"
]
types: [ opened, synchronize, reopened, labeled, unlabeled ]
workflow_dispatch:

permissions:
contents: write
pull-requests: write

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
release-check:
uses: ipdxco/unified-github-workflows/.github/workflows/[email protected]
with:
sources: |
[
"dispatch_examples/greeter/Cargo.toml",
"frc42_dispatch/Cargo.toml",
"frc42_dispatch/hasher/Cargo.toml",
"frc42_dispatch/macros/Cargo.toml",
"frc42_dispatch/macros/example/Cargo.toml",
"frc46_token/Cargo.toml",
"frc53_nft/Cargo.toml",
"fvm_actor_utils/Cargo.toml",
"fvm_dispatch_tools/Cargo.toml",
"testing/integration/Cargo.toml",
"testing/test_actors/Cargo.toml",
"testing/test_actors/actors/basic_nft_actor/Cargo.toml",
"testing/test_actors/actors/basic_receiving_actor/Cargo.toml",
"testing/test_actors/actors/basic_token_actor/Cargo.toml",
"testing/test_actors/actors/basic_transfer_actor/Cargo.toml",
"testing/test_actors/actors/frc46_factory_actor/Cargo.toml",
"testing/test_actors/actors/frc46_test_actor/Cargo.toml",
"testing/test_actors/actors/frc53_test_actor/Cargo.toml",
"testing/test_actors/actors/frc46_factory_token/token_impl/Cargo.toml"
]
62 changes: 62 additions & 0 deletions .github/workflows/releaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
name: Releaser

on:
push:
paths: [
"dispatch_examples/greeter/Cargo.toml",
"frc42_dispatch/Cargo.toml",
"frc42_dispatch/hasher/Cargo.toml",
"frc42_dispatch/macros/Cargo.toml",
"frc42_dispatch/macros/example/Cargo.toml",
"frc46_token/Cargo.toml",
"frc53_nft/Cargo.toml",
"fvm_actor_utils/Cargo.toml",
"fvm_dispatch_tools/Cargo.toml",
"testing/integration/Cargo.toml",
"testing/test_actors/Cargo.toml",
"testing/test_actors/actors/basic_nft_actor/Cargo.toml",
"testing/test_actors/actors/basic_receiving_actor/Cargo.toml",
"testing/test_actors/actors/basic_token_actor/Cargo.toml",
"testing/test_actors/actors/basic_transfer_actor/Cargo.toml",
"testing/test_actors/actors/frc46_factory_actor/Cargo.toml",
"testing/test_actors/actors/frc46_test_actor/Cargo.toml",
"testing/test_actors/actors/frc53_test_actor/Cargo.toml",
"testing/test_actors/actors/frc46_factory_token/token_impl/Cargo.toml"
]
workflow_dispatch:

permissions:
contents: write

concurrency:
group: ${{ github.workflow }}-${{ github.sha }}
cancel-in-progress: true

jobs:
releaser:
uses: ipdxco/unified-github-workflows/.github/workflows/[email protected]
with:
sources: |
[
"dispatch_examples/greeter/Cargo.toml",
"frc42_dispatch/Cargo.toml",
"frc42_dispatch/hasher/Cargo.toml",
"frc42_dispatch/macros/Cargo.toml",
"frc42_dispatch/macros/example/Cargo.toml",
"frc46_token/Cargo.toml",
"frc53_nft/Cargo.toml",
"fvm_actor_utils/Cargo.toml",
"fvm_dispatch_tools/Cargo.toml",
"testing/integration/Cargo.toml",
"testing/test_actors/Cargo.toml",
"testing/test_actors/actors/basic_nft_actor/Cargo.toml",
"testing/test_actors/actors/basic_receiving_actor/Cargo.toml",
"testing/test_actors/actors/basic_token_actor/Cargo.toml",
"testing/test_actors/actors/basic_transfer_actor/Cargo.toml",
"testing/test_actors/actors/frc46_factory_actor/Cargo.toml",
"testing/test_actors/actors/frc46_test_actor/Cargo.toml",
"testing/test_actors/actors/frc53_test_actor/Cargo.toml",
"testing/test_actors/actors/frc46_factory_token/token_impl/Cargo.toml"
]
secrets:
UCI_GITHUB_TOKEN: ${{ secrets.UCI_GITHUB_TOKEN }}

0 comments on commit 2590f9b

Please sign in to comment.