diff --git a/.gitea/workflows/demo.yml b/.gitea/workflows/demo.yml index 9868ea8..e50693c 100644 --- a/.gitea/workflows/demo.yml +++ b/.gitea/workflows/demo.yml @@ -6,20 +6,22 @@ jobs: Explore-Gitea-Actions: runs-on: ubuntu-latest steps: - - run: echo "🎉 The job was automatically triggered by a ${{ gitea.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 ${{ gitea.ref }} and your repository is ${{ gitea.repository }}." - name: Check out repository code uses: actions/checkout@v4 - - run: echo "💡 The ${{ gitea.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 + with: + submodules: true # Fetch Hugo themes (true OR recursive) + fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod + - name: List files in the repository pre run: | ls ${{ gitea.workspace }} - - run: echo "🍏 This job's status is ${{ job.status }}." - - name: update - run: sudo apt-get update - - name: install Hugo - run: sudo apt install -y hugo - - name: Hugo test - run: hugo -v \ No newline at end of file + - name: Setup Hugo + uses: peaceiris/actions-hugo@v3 + with: + hugo-version: 'latest' + # extended: true + - name: Build + run: hugo --minify + - name: List files in the repository post + run: | + ls ${{ gitea.workspace }} + - run: echo "🍏 This job's status is ${{ job.status }}." \ No newline at end of file