Skip to content

Commit

Permalink
set up autodeploy
Browse files Browse the repository at this point in the history
  • Loading branch information
alexwaeseperlman committed Oct 16, 2023
1 parent b57b571 commit d1dd8df
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Deploy main
on:
push:
branches:
- main
- staging

permissions:
contents: read
pages: write
id-token: write

jobs:
build:
runs-on:
permissions:
contents: read
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: '20.x'
- run: npm ci
- run: npm run build
- run: mv dist _site
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
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@v2

0 comments on commit d1dd8df

Please sign in to comment.