Skip to content

Commit

Permalink
Create deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
norwd authored Oct 9, 2024
1 parent cbb8e4d commit f2d1ddb
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: "Deploy GitHub Pages"
run-name: "Deploy GitHub Pages"

on:
workflow_dispatch:
push:
branches: [main]

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

env:
GH_TOKEN: ${{ github.token }}

jobs:
build:
uses: ./.github/workflows/build.yml

deploy:
if: github.ref_name == 'main'
needs: build
runs-on: ubuntu-latest

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

environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

steps:
- name: "Setup Pages"
uses: actions/configure-pages@v3

- name: "Unarchive Pages Artifact"
uses: actions/[email protected]
with:
name: pages

- name: "Create a Pages Artifact"
uses: actions/upload-pages-artifact@v1
with:
path: .

- name: "Deploy Pages"
uses: actions/deploy-pages@v1

0 comments on commit f2d1ddb

Please sign in to comment.