Skip to content

Commit

Permalink
Merge pull request #13 from Vortex-Linux/Contubuters
Browse files Browse the repository at this point in the history
Contubuters section
  • Loading branch information
hsmith-dev authored Nov 24, 2024
2 parents cf5cfdf + f2f6260 commit c9e3fd4
Show file tree
Hide file tree
Showing 17 changed files with 1,623 additions and 41 deletions.
29 changes: 16 additions & 13 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
name: Deploy to GitHub Pages

on:
# Trigger the workflow every time you push to the `main` branch
# Using a different branch name? Replace `main` with your branch’s name
push:
branches: [ main ]
# Allows you to run this workflow manually from the Actions tab on GitHub.
workflow_dispatch:

# Allow this job to clone the repo and create a page deployment
permissions:
contents: read
pages: write
Expand All @@ -17,15 +13,22 @@ permissions:
jobs:
build:
runs-on: ubuntu-latest
environment:
name: github-pages
env:
PUBLIC_GITHUB_TOKEN: ${{ secrets.CONTRIBUTOR_SECRET }}
steps:
- name: Checkout your repository using git
uses: actions/checkout@v4
- name: Install, build, and upload your site
uses: withastro/action@v2
# with:
# path: . # The root location of your Astro project inside the repository. (optional)
# node-version: 20 # The specific version of Node that should be used to build your site. Defaults to 20. (optional)
# package-manager: pnpm@latest # The Node package manager that should be used to install dependencies and build your site. Automatically detected based on your lockfile. (optional)
- name: Checkout
uses: actions/checkout@v3

- name: Install, build, and upload
uses: withastro/action@v1
with:
path: ./
node-version: 18
package-manager: npm
env:
PUBLIC_GITHUB_TOKEN: ${{ secrets.CONTRIBUTOR_SECRET }}

deploy:
needs: build
Expand All @@ -36,4 +39,4 @@ jobs:
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
uses: actions/deploy-pages@v1
3 changes: 3 additions & 0 deletions astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,7 @@ export default defineConfig({
}),
sitemap(),
],
vite: {
envPrefix: 'GITHUB_',
},
});
Loading

0 comments on commit c9e3fd4

Please sign in to comment.