From 2d0c8315eaac4d4a2b3b96e1c1732711603fb8a2 Mon Sep 17 00:00:00 2001 From: obsidian <> Date: Tue, 20 Feb 2024 11:10:03 +0100 Subject: [PATCH] Update main.yml --- .gitea/workflows/main.yml | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/.gitea/workflows/main.yml b/.gitea/workflows/main.yml index 07aaec9..dc8983e 100644 --- a/.gitea/workflows/main.yml +++ b/.gitea/workflows/main.yml @@ -9,7 +9,6 @@ # jobs: # deploy: # runs-on: linux_arm - # - name: Copy images # run: cp -r static/uploads/screenshots assets/images @@ -45,14 +44,19 @@ jobs: Explore-Gitea-Actions: runs-on: linux_arm steps: - - run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event." - - run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by Gitea!" - - run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}." - name: Check out repository code uses: actions/checkout@v3 - - run: echo "💡 The ${{ github.repository }} repository has been cloned to the runner." - - run: echo "🖥️ The workflow is now ready to test your code on the runner." - - name: List files in the repository - run: | - ls ${{ github.workspace }} - - run: echo "🍏 This job's status is ${{ job.status }}." \ No newline at end of file + - run: cp -r static/uploads/screenshots assets/images + - 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 + - run: hugo --minify + - run: touch /var/www/my_webapp/test.md