diff --git a/.github/workflows/CompatHelper.yml b/.github/workflows/CompatHelper.yml index e4ee926e..0993f368 100644 --- a/.github/workflows/CompatHelper.yml +++ b/.github/workflows/CompatHelper.yml @@ -16,7 +16,7 @@ jobs: run: which julia continue-on-error: true - name: Install Julia, but only if it is not already available in the PATH - uses: julia-actions/setup-julia@latest + uses: julia-actions/setup-julia@v3 with: version: '1' # arch: ${{ runner.arch }} diff --git a/.github/workflows/Documentation.yml b/.github/workflows/Documentation.yml index 14dfa9a5..d28d42d1 100644 --- a/.github/workflows/Documentation.yml +++ b/.github/workflows/Documentation.yml @@ -5,19 +5,27 @@ on: paths-ignore: - 'README.md' push: - paths-ignore: - - 'README.md' branches: - 'main' - 'release-' + paths-ignore: + - 'README.md' tags: '*' jobs: build: + # These permissions are needed to: + # - Deploy the documentation: https://documenter.juliadocs.org/stable/man/hosting/#Permissions + # - Delete old caches: https://github.com/julia-actions/cache#usage + permissions: + actions: write + contents: write + pull-requests: read + statuses: write runs-on: ubuntu-latest steps: - uses: actions/checkout@v6 - - uses: julia-actions/setup-julia@latest + - uses: julia-actions/setup-julia@v3 with: version: '1' - name: CacheArtifacts @@ -33,15 +41,15 @@ jobs: ${{ runner.os }}- - name: InstallDependencies run: | - julia --project=docs/ -e ' + julia --color=yes --project=docs/ -e ' ENV["JULIA_PKG_SERVER"] = "" using Pkg Pkg.develop(PackageSpec(path=pwd())) Pkg.instantiate()' - name: BuildAndDeploy + run: julia --color=yes --project=docs/ docs/make.jl env: # https://juliadocs.github.io/Documenter.jl/stable/man/hosting/#Authentication:-GITHUB_TOKEN -# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # for previews ssh: ${{ secrets.DOCUMENTER_KEY }} DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} - run: julia --project=docs/ docs/make.jl diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 96c9189e..5a75ed9a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -3,13 +3,13 @@ name: CI on: create: tags: - push: - branches: - - main + pull_request: paths-ignore: - '**.md' - 'docs/**' - pull_request: + push: + branches: + - main paths-ignore: - '**.md' - 'docs/**' @@ -29,7 +29,7 @@ jobs: - uses: actions/checkout@v6 # - name: "Set up Julia" - - uses: julia-actions/setup-julia@latest + - uses: julia-actions/setup-julia@v3 with: version: ${{ matrix.version }} @@ -46,8 +46,8 @@ jobs: ${{ runner.os }}- # - name: "Unit Test" - - uses: julia-actions/julia-buildpkg@latest - - uses: julia-actions/julia-runtest@latest + - uses: julia-actions/julia-buildpkg@v1 + - uses: julia-actions/julia-runtest@v1 # - name: "Cover" - uses: julia-actions/julia-processcoverage@v1