diff --git a/.github/workflows/ExportPluto.yaml b/.github/workflows/ExportPluto.yaml index c304a6f..5d89064 100644 --- a/.github/workflows/ExportPluto.yaml +++ b/.github/workflows/ExportPluto.yaml @@ -10,18 +10,23 @@ on: concurrency: group: pluto-export cancel-in-progress: true + +# This action needs permission to write the exported HTML file to the gh-pages branch. +permissions: + contents: write + # (all other permission fields default to "none") jobs: build-and-deploy: runs-on: ubuntu-latest steps: - name: Checkout this repository - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Install Julia uses: julia-actions/setup-julia@v1 with: - version: "1.9" + version: "1" # This will automatically pick the latest Julia version - name: Install TeXlive run: sudo apt-get update && sudo apt-get install texlive-full @@ -32,7 +37,7 @@ jobs: # We set up a folder that Pluto can use to cache exported notebooks. If the notebook file did not change, then Pluto can take the exported file from cache instead of running the notebook. - name: Set up notebook state cache - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: pluto_state_cache key: ${{ runner.os }}-pluto_state_cache-v2-${{ hashFiles('**/Project.toml', '**/Manifest.toml', '.github/workflows/*' ) }}-${{ hashFiles('**/*jl') }} @@ -60,8 +65,10 @@ jobs: - name: Deploy to gh-pages - uses: JamesIves/github-pages-deploy-action@releases/v3 + uses: JamesIves/github-pages-deploy-action@releases/v4 with: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - BRANCH: gh-pages - FOLDER: . + token: ${{ secrets.GITHUB_TOKEN }} + branch: gh-pages + folder: . + single-commit: true + diff --git a/Born-approximation.jl b/Born-approximation.jl index ee7147e..b7f7c72 100644 --- a/Born-approximation.jl +++ b/Born-approximation.jl @@ -597,7 +597,7 @@ function plot_image(image) fig = Plot(Layout(yaxis_autorange="reversed", xaxis=attr(range=extrema(xgridUI) .+ [-20, 20]), yaxis=attr(range=extrema(zgridUI) .+ [-10, 10]), height=225, width=350, yaxis_title="Depth", xaxis_title="Distance", Subplots(shared_xaxes=true, shared_yaxes=true, rows=1, cols=1, subplot_titles=["Migration Image" ""]))) - add_trace!(fig, heatmap(x=xgridUI, y=zgridUI, z=image, showscale=false, colorscale="Greys"), row=1, col=1) + add_trace!(fig, heatmap(x=xgridUI, y=zgridUI, z=image, showscale=false, colorscale="seismic"), row=1, col=1) add_ageom!(fig, acq) return PlutoPlotly.plot(fig) @@ -621,7 +621,7 @@ function plot_animations(d1, d2, d1max) end # ╔═╡ cff433fb-e1c4-42ae-a310-db85f48d09e3 -plot_animations(dgrid[mod(it_plot, div(length(tgrid), 2))+1, :, :], δdgrid[mod(it_plot, div(length(tgrid), 2))+1, :, :], maximum(abs, dgrid) / 2.0) +plot_animations(dgrid[mod(it_plot, div(length(tgrid), 2))+1, :, :], δdgrid[mod(it_plot, div(length(tgrid), 2))+1, :, :], maximum(abs, dgrid) / 1.0) # ╔═╡ 98521f53-fbf4-4ba2-b0b9-629f21478a31 md"## References"