Skip to content

Commit

Permalink
deployment workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
peterrauscher committed Apr 30, 2023
1 parent 6b968c0 commit c96005b
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 23 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/deployment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Continuous Deployment

on:
push:
branches:
- main

concurrency:
group: "pages"
cancel-in-progress: false

jobs:
prettier:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
ref: ${{ github.head_ref }}
- name: Prettify code
uses: creyD/[email protected]
with:
# This part is also where you can pass other options, for example:
prettier_options: --write .
publish:
needs: prettier
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
path: "."
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
23 changes: 0 additions & 23 deletions .github/workflows/formatting.yml

This file was deleted.

0 comments on commit c96005b

Please sign in to comment.