Skip to content

Commit

Permalink
feat: build and deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
petertonysmith94 committed Jan 22, 2024
1 parent beb18e7 commit ca5633a
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 37 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: build
run-name: 🏗️ Build
name: build-and-deploy
run-name: 🏗️ CI/CD
on:
push:
branches:
Expand Down Expand Up @@ -39,3 +39,29 @@ jobs:
with:
name: "build-artifact-${{ github.sha }}"
path: build

deploy:
if: ${{ github.ref == 'refs/heads/master' }}
needs: [build]

name: 🚀 Deploy
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

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

steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
with:
artifact_name: "build-artifact-${{ github.sha }}"
preview: false

- name: Get the URL for the deployment
run: echo "${{ steps.deployment.outputs.page_url }}"
35 changes: 0 additions & 35 deletions .github/workflows/deploy.yml

This file was deleted.

0 comments on commit ca5633a

Please sign in to comment.