From ab624b08d252b4ec9f0869941b77a0f0179a7957 Mon Sep 17 00:00:00 2001 From: Lukas Devos Date: Thu, 13 Feb 2025 14:06:28 -0500 Subject: [PATCH 1/2] update skeleton --- .github/workflows/IntegrationTestRequest.yml | 14 +++++++++++ .github/workflows/Register.yml | 25 ++++++++++---------- LICENSE | 2 +- docs/make.jl | 2 +- docs/src/{library.md => reference.md} | 2 +- 5 files changed, 30 insertions(+), 15 deletions(-) create mode 100644 .github/workflows/IntegrationTestRequest.yml rename docs/src/{library.md => reference.md} (80%) diff --git a/.github/workflows/IntegrationTestRequest.yml b/.github/workflows/IntegrationTestRequest.yml new file mode 100644 index 00000000..d42fccaa --- /dev/null +++ b/.github/workflows/IntegrationTestRequest.yml @@ -0,0 +1,14 @@ +name: "Integration Test Request" + +on: + issue_comment: + types: [created] + +jobs: + integrationrequest: + if: | + github.event.issue.pull_request && + contains(fromJSON('["OWNER", "COLLABORATOR", "MEMBER"]'), github.event.comment.author_association) + uses: ITensor/ITensorActions/.github/workflows/IntegrationTestRequest.yml@main + with: + localregistry: https://github.com/ITensor/ITensorRegistry.git diff --git a/.github/workflows/Register.yml b/.github/workflows/Register.yml index 5b7cd3b3..ac01aa1a 100644 --- a/.github/workflows/Register.yml +++ b/.github/workflows/Register.yml @@ -1,16 +1,17 @@ name: Register Package on: workflow_dispatch: - inputs: - version: - description: Version to register or component to bump - required: true + pull_request: + types: + - closed + paths: + - 'Project.toml' + branches: + - 'master' + - 'main' jobs: - register: - runs-on: ubuntu-latest - permissions: - contents: write - steps: - - uses: julia-actions/RegisterAction@latest - with: - token: ${{ secrets.GITHUB_TOKEN }} + Register: + if: github.event_name == 'workflow_dispatch' || github.event.pull_request.merged == true + uses: "ITensor/ITensorActions/.github/workflows/Registrator.yml@main" + with: + localregistry: ITensor/ITensorRegistry diff --git a/LICENSE b/LICENSE index 7f5c8c63..89cf357f 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2024 ITensor developers +Copyright (c) 2025 ITensor developers Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/docs/make.jl b/docs/make.jl index 18b0932c..24b02e2d 100644 --- a/docs/make.jl +++ b/docs/make.jl @@ -22,7 +22,7 @@ makedocs(; edit_link="main", assets=String[], ), - pages=["Home" => "index.md", "Library" => "library.md"], + pages=["Home" => "index.md", "Reference" => "reference.md"], ) deploydocs(; diff --git a/docs/src/library.md b/docs/src/reference.md similarity index 80% rename from docs/src/library.md rename to docs/src/reference.md index 63af0e85..dcededa1 100644 --- a/docs/src/library.md +++ b/docs/src/reference.md @@ -1,4 +1,4 @@ -# Library +# Reference ```@autodocs Modules = [BlockSparseArrays] From 3215a637134a6024210210be8c90fd0dffad218e Mon Sep 17 00:00:00 2001 From: Lukas Devos Date: Thu, 13 Feb 2025 14:51:39 -0500 Subject: [PATCH 2/2] Rename `Register` to `Registrator.yml` --- .github/workflows/{Register.yml => Registrator.yml} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .github/workflows/{Register.yml => Registrator.yml} (100%) diff --git a/.github/workflows/Register.yml b/.github/workflows/Registrator.yml similarity index 100% rename from .github/workflows/Register.yml rename to .github/workflows/Registrator.yml