Skip to content

Commit 9833109

Browse files
committed
fix: use new github action
1 parent b0fe3e5 commit 9833109

File tree

3 files changed

+16
-9
lines changed

3 files changed

+16
-9
lines changed

.github/workflows/continuous-deployment.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,12 +64,15 @@ jobs:
6464
uses: actions/checkout@v3
6565

6666
- name: Publish
67-
uses: netlify/actions/build@master
67+
uses: nwtgck/actions-netlify@v1.2
68+
with:
69+
publish-dir: "./dist"
70+
production-branch: main
71+
github-token: ${{ secrets.GITHUB_TOKEN }}
72+
deploy-message: "Deploy from GitHub Actions"
6873
env:
69-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
74+
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
7075
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
71-
NETLIFY_CMD: npm run build
72-
NETLIFY_DIR: dist
7376

7477
build-index:
7578
needs: deploy

src/components/Header.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
<a href="/contact" class="text-base font-medium text-zinc-600 hover:text-zinc-900 dark:text-zinc-400 hover:dark:text-zinc-300">Contact</a>
1414

15-
<button id="theme-button" onclick="handleClick()"></button>
15+
<button id="theme-button" onclick="handleClick()" aria-label="change theme color"></button>
1616
</div>
1717

1818
<script is:inline>

src/pages/index.astro

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@ const posts = (await Astro.glob("./**/*.{md,mdx}"))
2121
{
2222
posts.map((post) => (
2323
<div class="flex flex-col bg-zinc-200 dark:bg-zinc-700 rounded-sm">
24-
<a href={post.url} class="flex-1">
24+
<a href={post.url} class="flex-1" aria-label="Title goes to post">
2525
<h3 class="p-2 text-xl">{post.frontmatter.title}</h3>
2626
</a>
2727

28-
<a href={post.url}>
29-
<img src={post.frontmatter.featuredImage} class="object-cover my-2 w-full h-60" />
28+
<a href={post.url} aria-label="hero image goes to post">
29+
<img src={post.frontmatter.featuredImage} class="object-cover my-2 w-full h-60" alt={`${post.frontmatter.title} post hero image`} />
3030
</a>
3131

3232
<p class="line-clamp-3 m-2">
@@ -49,7 +49,11 @@ const posts = (await Astro.glob("./**/*.{md,mdx}"))
4949
</span>
5050

5151
<span class="ml-1 text-sm flex self-end">
52-
<a href={`/categories/${post.frontmatter.category}`} class="ml-1 hover:text-zinc-700 dark:hover:text-zinc-400">
52+
<a
53+
href={`/categories/${post.frontmatter.category}`}
54+
class="ml-1 hover:text-zinc-700 dark:hover:text-zinc-400"
55+
aria-label={`go to ${post.frontmatter.category} category`}
56+
>
5357
<i class="fa-regular fa-folder" />
5458
{post.frontmatter.category}
5559
</a>

0 commit comments

Comments
 (0)