Skip to content

Commit

Permalink
Deploy static site to GH Pages via GH Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
mvitz committed Jul 4, 2024
1 parent 82fe1b2 commit 34a4e46
Show file tree
Hide file tree
Showing 7 changed files with 51 additions and 18 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Build and deploy to GitHub Pages

on:
push:
branches: ["main"]
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:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup GitHub Pages
id: pages
uses: actions/configure-pages@v5
- name: Upload GitHub Pages artifact
uses: actions/upload-pages-artifact@v3
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
2 changes: 0 additions & 2 deletions .gitignore

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ innoq.github.io

At the moment this repository only has an index.html to redirect all requests from https://innoq.github.io/ to https://github.com/innoq, as this is where the content is.

Maybe we will create a more sophisticated index page in the future. If you want to find out more about *innoQ* in the meantime, please visit https://www.innoq.com/.
Maybe we will create a more sophisticated index page in the future. If you want to find out more about *INNOQ* in the meantime, please visit https://www.innoq.com/.

---
Copyright 2014 innoQ Deutschland GmbH
1 change: 0 additions & 1 deletion _config.yml

This file was deleted.

10 changes: 0 additions & 10 deletions _layouts/redirect.html

This file was deleted.

10 changes: 10 additions & 0 deletions _site/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="refresh" content="0;url=https://github.com/innoq">
<title>Redirecting to https://github.com/innoq</title>
</head>
<body>
<h1><a href="https://github.com/innoq">Go to https://github.com/innoq</a>
</body>
</html>
4 changes: 0 additions & 4 deletions index.md

This file was deleted.

0 comments on commit 34a4e46

Please sign in to comment.