Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: automate creation of GitHub releases and tags #235

Closed
wants to merge 6 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This set of files is duplicated 4 times across 2 files. Is there a way to factor it out to one place?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unfortunately, that isn't that straighforward.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ack - bummer. I guess this in part because GitHub Actions doesn't support YML anchors?
Maybe for now just add a comment that any changes here should also be made in releaser.yml (and vice versa)

]
galargh marked this conversation as resolved.
Show resolved Hide resolved
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: |
galargh marked this conversation as resolved.
Show resolved Hide resolved
[
"dispatch_examples/greeter/Cargo.toml",
galargh marked this conversation as resolved.
Show resolved Hide resolved
"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",
galargh marked this conversation as resolved.
Show resolved Hide resolved
"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 }}
Loading