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

@@ -274,6 +274,7 @@ jobs:
x86_64-linux---whitepaper-upload:
name: Upload whitepaper x86_64-linux
runs-on: ubuntu-latest
if: ${{ github.ref == 'refs/heads/main' }}
steps:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v21
@@ -288,7 +289,6 @@ jobs:
- name: Build
run: nix build .#packages.x86_64-linux.whitepaper --print-build-logs
- name: Deploy PDF artifacts
if: ${{ github.ref == 'refs/heads/main' }}
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}