From 143feea7665f555cfd49db3880fad3c6f50876d9 Mon Sep 17 00:00:00 2001 From: Jelly Terra Date: Tue, 3 Sep 2024 04:14:55 +0800 Subject: [PATCH] Update GitHub Actions workflow configuration. --- .github/workflows/pagine.yml | 22 ++++++++-------------- 1 file changed, 8 insertions(+), 14 deletions(-) diff --git a/.github/workflows/pagine.yml b/.github/workflows/pagine.yml index 2791785..56e9c66 100644 --- a/.github/workflows/pagine.yml +++ b/.github/workflows/pagine.yml @@ -1,38 +1,32 @@ -name: Deploy Pagine +name: Deploy on: - # Runs on pushes targeting the default branch push: branches: - master - # Allows you to run this workflow manually from the Actions tab - workflow_dispatch: - -# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages permissions: contents: read pages: write id-token: write -# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. -# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. concurrency: group: "pages" cancel-in-progress: false -# Default to bash defaults: run: shell: bash jobs: - # Build job build: runs-on: ubuntu-latest steps: + - name: Install TypeScript Compiler + run: sudo apt install node-typescript -y + - name: Install Pagine - run: go install github.com/webpagine/pagine/v2/cmd/pagine@v2.2.0-alpha + run: go install github.com/webpagine/pagine/v2/cmd/pagine@v2.4.0 - name: Checkout uses: actions/checkout@v4 @@ -45,13 +39,13 @@ jobs: uses: actions/configure-pages@v4 - name: Build with Pagine - run: ~/go/bin/pagine --public ./public/ + run: ~/go/bin/pagine --public ../public/ - name: Upload artifact uses: actions/upload-pages-artifact@v3 with: - path: ./public/ + path: ../public/ - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@v4 + uses: actions/deploy-pages@v4 \ No newline at end of file