move if on upload pdf job in CI

This commit is contained in:
wucke13
2023-06-10 23:04:25 +02:00
parent d01c96c1de
commit e24172d9b5
2 changed files with 2 additions and 2 deletions

View File

@@ -161,6 +161,7 @@ let system = "x86_64-linux"
$cachix_workflow.jobs = ($cachix_workflow.jobs | insert $"($system)---whitepaper-upload" {
name: $"Upload whitepaper ($system)",
"runs-on": ($systems_map | get $system),
"if": "${{ github.ref == 'refs/heads/main' }}",
steps: ($runner_setup | append [
{
name: "Git add git sha and commit",
@@ -172,7 +173,6 @@ $cachix_workflow.jobs = ($cachix_workflow.jobs | insert $"($system)---whitepaper
}
{
name: "Deploy PDF artifacts",
"if": "${{ github.ref == 'refs/heads/main' }}",
uses: "peaceiris/actions-gh-pages@v3",
with: {
github_token: "${{ secrets.GITHUB_TOKEN }}",