-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Deploy to production plsss
- Loading branch information
Showing
7 changed files
with
62 additions
and
91 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: deploy | ||
run-name: 🚀 Deploy | ||
on: | ||
workflow_run: | ||
workflows: ["build"] | ||
branches: ["main", "release/*"] | ||
types: | ||
- completed | ||
|
||
env: | ||
DEPLOY_PREVIEW: ${{ github.event.workflow_run.event == 'pull_request' }} | ||
ARTIFACT_NAME: "build-artifact-${{ github.sha }}" | ||
|
||
|
||
|
||
jobs: | ||
deploy: | ||
# Only run if the build was successful | ||
if: ${{ github.event.workflow_run.conclusion == 'success' }} | ||
|
||
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: ${{ env.ARTIFACT_NAME}} | ||
preview: ${{ env.DEPLOY_PREVIEW }} | ||
|
||
- name: Get the URL for the deployment | ||
run: echo "${{ steps.deployment.outputs.page_url }}" |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,8 @@ | ||
import { ReactComponent as GithubIcon } from './assets/github.svg'; | ||
import { ReactComponent as LinkedInIcon } from './assets/linkedin.svg'; | ||
import { ReactComponent as EmailIcon } from './assets/email.svg'; | ||
import { ReactComponent as Logo } from './assets/logo.svg'; | ||
import Profile from './pages/profile.md' | ||
import Experience from './pages/experience.md' | ||
import Projects from './pages/projects.md' | ||
import Sources from './pages/projects.md' | ||
import ReactMarkdown from 'react-markdown'; | ||
|
||
const markdown = (contents: string) => (<><ReactMarkdown children={contents} /></>); | ||
|
@@ -22,12 +20,14 @@ const config = { | |
url: 'https://www.linkedin.com/in/petertonysmith/', | ||
icon: LinkedInIcon | ||
}, | ||
{ | ||
name: 'Email', | ||
url: 'mailto:[email protected]', | ||
icon: EmailIcon | ||
} | ||
], | ||
pages: [ | ||
() => markdown(Profile), | ||
() => markdown(Experience), | ||
() => markdown(Projects), | ||
() => markdown(Sources), | ||
] | ||
}; | ||
|
||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
# Sources | ||
|
||
[Shubham Dhage | 3D Artist](https://unsplash.com/@theshubhamdhage) | ||
[Shubham Dhage | 3D Artist](https://unsplash.com/@theshubhamdhage) | ||
|
||
- [./assets/shubham-dhage-pringle-layers.jpg](../assets/shubham-dhage-pringle-layers.jpg) | ||
- [./assets/shubham-dhage-sphere-center.jpg](../assets/shubham-dhage-sphere-center.jpg) | ||
- [./assets/shubham-dhage-sphere-offset-left.jpg](../assets/shubham-dhage-sphere-offset-left.jpg) |