This is an automated email from the ASF dual-hosted git repository.

mmolinaro pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/openserverless-site.git


The following commit(s) were added to refs/heads/main by this push:
     new a11b32b  adjusting workflows 2 (#10)
a11b32b is described below

commit a11b32b74eb1f93f83572d040804d959c81545cd
Author: MatMol96 <[email protected]>
AuthorDate: Wed Jul 24 14:56:59 2024 +0200

    adjusting workflows 2 (#10)
    
    * adjusting build pipeline hugo
    
    * adjusting hugo pipeline
    
    * adjusting checkout version
---
 .github/workflows/build.yml | 29 +++++++++++++++--------------
 1 file changed, 15 insertions(+), 14 deletions(-)

diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 53ee6d9..5568a14 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -5,8 +5,11 @@ on:
     branches:
       - main
 
-#permissions:
-#  contents: write
+env:
+  PUBLISH_DIRECTORY: public
+
+permissions:
+  contents: write
 
 jobs:
   tests:
@@ -14,22 +17,20 @@ jobs:
     steps:
     - name: Checkout repository
       uses: actions/checkout@v4
-    - name: Install Nix
-      uses: cachix/install-nix-action@v25
+    - name: Checkout Production
+      if: github.ref_name == 'main'
+      uses: actions/checkout@v4
       with:
-        nix_path: nixpkgs=channel:nixos-unstable
-    - run: nix-build
-    - run: nix-shell --run "echo OK"
-    - run: nix-channel --add https://nixos.org/channels/nixos-23.11 nixpkgs
-    - run: nix-channel --update
+        ref: asf-site
+        path: ${{ env.PUBLISH_DIRECTORY }}
     - name: Install Hugo
       run: |
-        nix-env -iA nixpkgs.hugo
-
-    - name: Install Asciidoctor
+        sudo apt-get update
+        sudo apt-get install -y hugo asciidoctor
+    - name: Prepare
+      working-directory: ${{ env.PUBLISH_DIRECTORY }}
       run: |
-        nix-env -iA nixpkgs.asciidoctor
-
+        rm -rf stylesheets
     - name: Build Hugo site
       run: |
         hugo

Reply via email to