Skip to content

Commit

Permalink
add workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
swaptr committed Sep 30, 2023
1 parent 31da689 commit 3a1e7c0
Show file tree
Hide file tree
Showing 7 changed files with 60 additions and 43 deletions.
57 changes: 57 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: Deploy to GitHub Pages

on:
push:
branches: 'main'

jobs:
build_site:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

# If you're using pnpm, add this step then change the commands and cache key below to use `pnpm`
# - name: Install pnpm
# uses: pnpm/action-setup@v2
# with:
# version: 8

- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 18
cache: npm

- name: Install dependencies
run: npm install

- name: build
env:
BASE_PATH: '/'
run: |
npm run build
touch build/.nojekyll
- name: Upload Artifacts
uses: actions/upload-pages-artifact@v1
with:
# this should match the `pages` option in your adapter-static options
path: 'build/'

deploy:
needs: build_site
runs-on: ubuntu-latest

permissions:
pages: write
id-token: write

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

steps:
- name: Deploy
id: deployment
uses: actions/deploy-pages@v1
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.DS_Store
node_modules
/node_modules
/build
/.svelte-kit
/package
Expand Down
38 changes: 0 additions & 38 deletions README.md

This file was deleted.

5 changes: 2 additions & 3 deletions src/components/header.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
<h3 class="title">{config.title}</h3>
</div>
</a>

<ul class="links">
<li>
<a href="/blog">blog</a>
Expand Down Expand Up @@ -50,8 +49,8 @@
height: 28px;
}
nav {
/* padding-block: 15px; */
.header-container {
padding-block: 0.5em;
display: flex;
justify-content: space-between;
align-items: center;
Expand Down
1 change: 0 additions & 1 deletion src/routes/about/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,6 @@
justify-content: center;
align-items: center;
gap: 1rem;
overflow: scroll;
}
p {
Expand Down
Binary file removed static/images/clntk.jpg
Binary file not shown.
Binary file added static/images/lightning.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 3a1e7c0

Please sign in to comment.