From 23287d25b53a88aedefc71203c6e9358db42919b Mon Sep 17 00:00:00 2001 From: Hiroshi Shinaoka Date: Sun, 19 May 2024 14:11:14 +0200 Subject: [PATCH] Migration to GitHub --- .github/workflows/CI.yml | 31 ++++++++++++++++++++++++------- .github/workflows/TagBot.yml | 18 ++++++++++++++++++ README.md | 5 ++--- docs/make.jl | 11 ++++++++--- 4 files changed, 52 insertions(+), 13 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index bdbd84c..9f9d79d 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -3,8 +3,9 @@ on: push: branches: - main - tags: ['*'] pull_request: + branches: + - main concurrency: # Skip intermediate builds: always. # Cancel intermediate builds: only if it is a pull request build. @@ -18,20 +19,36 @@ jobs: fail-fast: false matrix: version: - #- '1.0' - #- '1.6' - - '1.7' - #- 'nightly' + - '1.9' + - '1' os: - ubuntu-latest + #- macOS-latest + #- windows-latest arch: - x64 steps: - - uses: actions/checkout@v2 - - uses: julia-actions/setup-julia@v1 + - uses: actions/checkout@v4 + - uses: julia-actions/setup-julia@v2 with: version: ${{ matrix.version }} arch: ${{ matrix.arch }} - uses: julia-actions/cache@v1 - uses: julia-actions/julia-buildpkg@v1 - uses: julia-actions/julia-runtest@v1 + continue-on-error: ${{ matrix.version == 'nightly' }} + - uses: julia-actions/julia-processcoverage@v1 + - uses: codecov/codecov-action@v3 + docs: + name: Documentation + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: julia-actions/setup-julia@v2 + with: + version: '1' + - uses: julia-actions/julia-buildpkg@v1 + - uses: julia-actions/julia-docdeploy@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} \ No newline at end of file diff --git a/.github/workflows/TagBot.yml b/.github/workflows/TagBot.yml index f49313b..4bad0ec 100644 --- a/.github/workflows/TagBot.yml +++ b/.github/workflows/TagBot.yml @@ -4,6 +4,22 @@ on: types: - created workflow_dispatch: + inputs: + lookback: + default: "3" +permissions: + actions: read + checks: read + contents: write + deployments: read + issues: read + discussions: read + packages: read + pages: read + pull-requests: read + repository-projects: read + security-events: read + statuses: read jobs: TagBot: if: github.event_name == 'workflow_dispatch' || github.actor == 'JuliaTagBot' @@ -12,4 +28,6 @@ jobs: - uses: JuliaRegistries/TagBot@v1 with: token: ${{ secrets.GITHUB_TOKEN }} + # Edit the following line to reflect the actual name of the GitHub Secret containing your private key ssh: ${{ secrets.DOCUMENTER_KEY }} + # ssh: ${{ secrets.NAME_OF_MY_SSH_PRIVATE_KEY_SECRET }} diff --git a/README.md b/README.md index f58afb5..7b302de 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,7 @@ # Quantics -[![Dev](https://img.shields.io/badge/docs-dev-blue.svg)](https://tensors4fields.gitlab.io/Quantics.jl/dev/index.html) -[![pipeline status](https://gitlab.com/tensors4fields/Quantics.jl/badges/main/pipeline.svg)](https://gitlab.com/tensors4fields/Quantics.jl/-/commits/main) -[![coverage report](https://gitlab.com/tensors4fields/Quantics.jl/badges/main/coverage.svg)](https://gitlab.com/tensors4fields/Quantics.jl/-/commits/main) +[![Dev](https://img.shields.io/badge/docs-dev-blue.svg)](https://tensor4all.github.io/Quantics.jl/dev) +[![CI](https://github.com/tensor4all/Quantics.jl/actions/workflows/CI.yml/badge.svg)](https://github.com/tensor4all/Quantics.jl/actions/workflows/CI.yml) ## Prerequisites diff --git a/docs/make.jl b/docs/make.jl index 90d56d1..aa8d4c8 100644 --- a/docs/make.jl +++ b/docs/make.jl @@ -6,11 +6,16 @@ DocMeta.setdocmeta!(Quantics, :DocTestSetup, :(using Quantics); recursive=true) makedocs(; modules=[Quantics], authors="Hiroshi Shinaoka and contributors", - repo="https://gitlab.com/tensors4fields/Quantics.jl/blob/{commit}{path}#{line}", sitename="Quantics.jl", format=Documenter.HTML(; - prettyurls=get(ENV, "CI", "false") == "true", + canonical="https://github.com/tensor4all/Quantics.jl", + edit_link="main", assets=String[]), pages=[ - "Home" => "index.md" + "Home" => "index.md", ]) + +deploydocs(; + repo="github.com/tensor4all/Quantics.jl.git", + devbranch="main", +)