Skip to content

Commit

Permalink
Add workflow and dependabot
Browse files Browse the repository at this point in the history
  • Loading branch information
davorg committed Feb 13, 2024
1 parent 81e5ff1 commit ddbfbb4
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/dependabot.yml
@@ -0,0 +1,10 @@
# Set update schedule for GitHub Actions

version: 2
updates:

- package-ecosystem: "github-actions"
directory: "/"
schedule:
# Check for updates to GitHub Actions every week
interval: "weekly"
45 changes: 45 additions & 0 deletions .github/workflows/buildsite.yml
@@ -0,0 +1,45 @@
name: Generate web page

on:
push:
branches: '*'
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest
container: davorg/perl-app-aphra:latest

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Create pages
run: aphra build > aphra.log 2>&1

- name: Archive aphra logs
uses: actions/upload-artifact@v3
with:
name: aphra.log
path: ./aphra.log
retention-days: 3

- name: Update pages artifact
uses: actions/upload-pages-artifact@v2
with:
path: docs/

deploy:
needs: build
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2

0 comments on commit ddbfbb4

Please sign in to comment.