name: Deploy Zola site to Pages env: ZOLA_VERSION: 0.21.0 # This workflow will only work correctly in https://codeberg.org/alinnow/zola-bearblog.git. # Adjust the site name to match your user and repository name. To publish # to the index site, https://username.codeberg.page/, name your repository `pages`. PAGES_URL: https://alinnow.codeberg.page/zola-bearblog on: # Runs on pushes targeting the default branch push: branches: # If you want to build from a different branch, change it here. - main # Allows you to run this workflow manually from the Actions tab workflow_dispatch: jobs: publish: # You can find the list of available runners on https://codeberg.org/actions/meta, or run one yourself. runs-on: codeberg-tiny-lazy container: image: "alpine:3.23" steps: - name: Install CI prerequisites run: | apk upgrade -Ua apk add nodejs git 'zola=~${{ env.ZOLA_VERSION }}' - name: Clone the repository uses: https://code.forgejo.org/actions/checkout@v5 with: submodules: recursive fetch-depth: 0 - name: Generate static files with Zola run: | zola build - uses: actions/git-pages@v2 with: site: ${{ env.PAGES_URL }} token: ${{ forge.token }} source: public