mirror of
https://github.com/rosenpass/rosenpass.git
synced 2026-02-27 22:13:12 -08:00
move if on upload pdf job in CI
This commit is contained in:
@@ -161,6 +161,7 @@ let system = "x86_64-linux"
|
|||||||
$cachix_workflow.jobs = ($cachix_workflow.jobs | insert $"($system)---whitepaper-upload" {
|
$cachix_workflow.jobs = ($cachix_workflow.jobs | insert $"($system)---whitepaper-upload" {
|
||||||
name: $"Upload whitepaper ($system)",
|
name: $"Upload whitepaper ($system)",
|
||||||
"runs-on": ($systems_map | get $system),
|
"runs-on": ($systems_map | get $system),
|
||||||
|
"if": "${{ github.ref == 'refs/heads/main' }}",
|
||||||
steps: ($runner_setup | append [
|
steps: ($runner_setup | append [
|
||||||
{
|
{
|
||||||
name: "Git add git sha and commit",
|
name: "Git add git sha and commit",
|
||||||
@@ -172,7 +173,6 @@ $cachix_workflow.jobs = ($cachix_workflow.jobs | insert $"($system)---whitepaper
|
|||||||
}
|
}
|
||||||
{
|
{
|
||||||
name: "Deploy PDF artifacts",
|
name: "Deploy PDF artifacts",
|
||||||
"if": "${{ github.ref == 'refs/heads/main' }}",
|
|
||||||
uses: "peaceiris/actions-gh-pages@v3",
|
uses: "peaceiris/actions-gh-pages@v3",
|
||||||
with: {
|
with: {
|
||||||
github_token: "${{ secrets.GITHUB_TOKEN }}",
|
github_token: "${{ secrets.GITHUB_TOKEN }}",
|
||||||
|
|||||||
2
.github/workflows/nix.yaml
vendored
2
.github/workflows/nix.yaml
vendored
@@ -274,6 +274,7 @@ jobs:
|
|||||||
x86_64-linux---whitepaper-upload:
|
x86_64-linux---whitepaper-upload:
|
||||||
name: Upload whitepaper x86_64-linux
|
name: Upload whitepaper x86_64-linux
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
if: ${{ github.ref == 'refs/heads/main' }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: cachix/install-nix-action@v21
|
- uses: cachix/install-nix-action@v21
|
||||||
@@ -288,7 +289,6 @@ jobs:
|
|||||||
- name: Build
|
- name: Build
|
||||||
run: nix build .#packages.x86_64-linux.whitepaper --print-build-logs
|
run: nix build .#packages.x86_64-linux.whitepaper --print-build-logs
|
||||||
- name: Deploy PDF artifacts
|
- name: Deploy PDF artifacts
|
||||||
if: ${{ github.ref == 'refs/heads/main' }}
|
|
||||||
uses: peaceiris/actions-gh-pages@v3
|
uses: peaceiris/actions-gh-pages@v3
|
||||||
with:
|
with:
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|||||||
Reference in New Issue
Block a user