Skip to content

Commit

Permalink
Clean up CI
Browse files Browse the repository at this point in the history
  • Loading branch information
HugoGranstrom authored Nov 21, 2024
1 parent 2498063 commit 962cd4e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 33 deletions.
35 changes: 2 additions & 33 deletions .github/workflows/netlify_deploy_preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,44 +32,13 @@ jobs:
description: Deploying site to Netlify. Please wait...
state: pending
- run: rm -rf docs
# - name: 'Download artifacts'
# uses: actions/download-artifact@v4
# with:
# name: "build-${{ steps.source-run-info.outputs.sourceHeadSha }}"
# path: docs/
- name: 'Download artifacts'
uses: dawidd6/action-download-artifact@v2
with:
github_token: ${{secrets.GITHUB_TOKEN}}
workflow: netlify_build_docs.yml # Name of the workflow that created the artifact
name: "build-${{ steps.source-run-info.outputs.sourceHeadSha }}" # Name of the artifact
path: docs/ # Optional path to extract to
# - name: 'Download artifact'
# uses: actions/[email protected]
# with:
# script: |
# var artifacts = await github.actions.listWorkflowRunArtifacts({
# owner: context.repo.owner,
# repo: context.repo.repo,
# run_id: ${{github.event.workflow_run.id }},
# });
# console.log("Target artifact: " + "build-${{ steps.source-run-info.outputs.sourceHeadSha }}")
# var matchArtifact = artifacts.data.artifacts.filter((artifact) => {
# console.log("Found artifacts: " + artifact.name)
# return artifact.name == "build-${{ steps.source-run-info.outputs.sourceHeadSha }}"
# })[0];
# if (matchArtifact == undefined) {
# core.setFailed('Artifact not found!');
# }
# var download = await github.actions.downloadArtifact({
# owner: context.repo.owner,
# repo: context.repo.repo,
# artifact_id: matchArtifact.id,
# archive_format: 'zip',
# });
# var fs = require('fs');
# fs.writeFileSync('${{github.workspace}}/docs.zip', Buffer.from(download.data));
#- run: unzip -d docs/ docs.zip
name: "build-${{ steps.source-run-info.outputs.sourceHeadSha }}" # Name of the artifact
path: docs/
- run: echo Deploy Alias = ${{ env.GITHUB_SHA_SHORT }}
- uses: jsmrcaga/action-netlify-deploy@master
with:
Expand Down
2 changes: 2 additions & 0 deletions docsrc/interactivity.nim
Original file line number Diff line number Diff line change
Expand Up @@ -303,3 +303,5 @@ There are many differences worth noticing, like use embedding of `fmt`'s `{}` to
There is **one other note for users of happyX**. The event handlers beginning in `@` must be called unambiguously. The more normal block declaration with `:` will not work in the current commit. HappyX does some massaging with its macros to make the syntax work in either case but plain Nim doesn't recognize `@click: <do stuff>` as a call. The best strategy for resolving the inconsistency hasn't been decided yet, and a potential refactor as happyX continues development may resolve it spontaneously.
"""
nbSave


0 comments on commit 962cd4e

Please sign in to comment.