Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
MBunel authored May 17, 2024
1 parent 53e2748 commit d53e2a5
Showing 1 changed file with 32 additions and 4 deletions.
36 changes: 32 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,28 @@ on:
push:
branches:
- main

# Allows you to run this workflow maanually 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

jobs:
build:
name: Make website
name: Build and deploye
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Guix Cache
Expand All @@ -22,8 +41,17 @@ jobs:
pullAfterInstall: false
- name: Check out repository code
uses: actions/checkout@v4
- name: build site
- name: Build
run: guix shell -m manifest.scm -- emacs -Q --batch -l install.el -l publish.el
working-directory: ${{ github.workspace }}


- name: Setup Pages
uses: actions/configure-pages@v5
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
# Upload entire repository
path: ${{ github.workspace }}/output
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4

0 comments on commit d53e2a5

Please sign in to comment.