From 8f968d78ccbfa1f33d0d72cf85111da63535857f Mon Sep 17 00:00:00 2001
From: Mirek Kratochvil <miroslav.kratochvil@uni.lu>
Date: Mon, 7 Feb 2022 13:49:19 +0100
Subject: [PATCH] separate the steps

---
 .github/workflows/apptainer.yml | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/.github/workflows/apptainer.yml b/.github/workflows/apptainer.yml
index e6a7cd84a..e2d6761c7 100644
--- a/.github/workflows/apptainer.yml
+++ b/.github/workflows/apptainer.yml
@@ -20,11 +20,16 @@ jobs:
         alias apptainer=singularity
         apptainer build cobrexa.sif cobrexa.def
 
-    - name: push to registry
+    - name: login to registry
       env:
         REGISTRY_TOKEN: ${{ secrets.SYLABS_IO_TOKEN }}
       run: |
         alias apptainer=singularity
         echo "$SREGISTRY_TOKEN" > .apptainer-token
         apptainer remote login --tokenfile .apptainer-token
+        rm .apptainer-token
+
+    - name: push to registry
+      run: |
+        alias apptainer=singularity
         apptainer push cobrexa.sif library://cylon-x/lcsb-biocore/cobrexa:latest
-- 
GitLab