From a617121101d28331e29716ba2e976a9915584f55 Mon Sep 17 00:00:00 2001 From: obsidian <> Date: Tue, 20 Feb 2024 11:02:27 +0100 Subject: [PATCH] Workflow testing --- .gitea/workflows/main.yml | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .gitea/workflows/main.yml diff --git a/.gitea/workflows/main.yml b/.gitea/workflows/main.yml new file mode 100644 index 0000000..7410131 --- /dev/null +++ b/.gitea/workflows/main.yml @@ -0,0 +1,39 @@ +name: Move Public Folder +run-name: Le site Meridian se met à jour + +on: + push: + branches: + - main + +jobs: + deploy: + runs-on: linux_arm + + - name: Copy images + run: cp -r static/uploads/screenshots assets/images + + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Setup Node + run: npm ci + + - name: Build TinaCMS + env: + TINA_PUBLIC_CLIENT_ID: ${{ secrets.TINA_PUBLIC_CLIENT_ID }} + TINA_TOKEN: ${{ secrets.TINA_TOKEN }} + run: npx tinacms build + + - name: Hugo setup + uses: peaceiris/actions-hugo@v2 + with: + hugo-version: '0.119.0' + extended: true + + - name: Build + run: hugo --minify + + - name: test Public Folder + run: touch /var/www/my_webapp/test.md