Skip to content

Commit

Permalink
Update GitHub Actions workflow configuration.
Browse files Browse the repository at this point in the history
  • Loading branch information
jellyterra committed Sep 2, 2024
1 parent 60eaa10 commit 143feea
Showing 1 changed file with 8 additions and 14 deletions.
22 changes: 8 additions & 14 deletions .github/workflows/pagine.yml
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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

0 comments on commit 143feea

Please sign in to comment.