-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 6c819f9
Showing
53 changed files
with
10,025 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
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 | ||
id-token: write | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout your repository using git | ||
uses: actions/checkout@v4 | ||
- name: Install, build, and upload your site | ||
uses: withastro/action@v3 | ||
# 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) | ||
|
||
deploy: | ||
needs: build | ||
runs-on: ubuntu-latest | ||
environment: | ||
name: github-pages | ||
url: ${{ steps.deployment.outputs.page_url }} | ||
steps: | ||
- name: Deploy to GitHub Pages | ||
id: deployment | ||
uses: actions/deploy-pages@v4 |
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,29 @@ | ||
name: Astro Tests | ||
|
||
on: | ||
pull_request: | ||
branches: [ main ] | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Setup pnpm | ||
uses: pnpm/action-setup@v2 | ||
with: | ||
version: 8 | ||
|
||
- name: Setup Node.js 20.x | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20.x | ||
cache: 'pnpm' | ||
|
||
- name: Install dependencies | ||
run: pnpm install | ||
|
||
- name: Build Astro site | ||
run: pnpm build |
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,3 @@ | ||
.astro | ||
node_modules | ||
dist |
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,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2023 Elian Van Cutsem | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
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,11 @@ | ||
# ✨ Hacktober 2024 Day-1 | ||
|
||
Hari pertama hacktoberfest'24 di WRI, disini kita bakal belajar colaboration, CI/CD, dan lain-lain. 🔥 | ||
|
||
# 🏎️ CI/CD | ||
|
||
CI/CD adalah singkatan dari Continuous Integration dan Continuous Deployment. CI/CD adalah metode pengembangan perangkat lunak yang memungkinkan pengembang untuk menggabungkan kode ke dalam repositori bersama secara berkala, kemudian mengotomatisasi proses pembangunan dan pengujian kode, serta penyebaran kode ke server produksi. | ||
|
||
# 🤝 Contributors | ||
|
||
- [Fikri Muhammad Abdillah](https://github.com/FlaBBB) |
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,26 @@ | ||
import { defineConfig } from 'astro/config'; | ||
import sitemap from '@astrojs/sitemap'; | ||
import UnoCSS from 'unocss/astro'; | ||
|
||
export default defineConfig({ | ||
// used to generate images | ||
site: | ||
process.env.VERCEL_ENV === 'production' | ||
? 'https://FlaBBB.github.io/' | ||
: process.env.VERCEL_URL | ||
? `https://${process.env.VERCEL_URL}/` | ||
: 'https://localhost:3000/', | ||
base: 'SCnPRnCICD', | ||
trailingSlash: 'ignore', | ||
integrations: [sitemap(), UnoCSS({ injectReset: true })], | ||
vite: { | ||
optimizeDeps: { | ||
exclude: ['@resvg/resvg-js'], | ||
}, | ||
server: { | ||
watch: { | ||
usePolling: true, | ||
}, | ||
}, | ||
}, | ||
}); |
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,46 @@ | ||
{ | ||
"name": "", | ||
"version": "1.2.0", | ||
"type": "module", | ||
"packageManager": "[email protected]", | ||
"author": { | ||
"name": "Elian Van Cutsem", | ||
"email": "[email protected]", | ||
"url": "https://www.elian.codes/" | ||
}, | ||
"homepage": "https://brutal.elian.codes", | ||
"scripts": { | ||
"dev": "astro dev", | ||
"start": "astro dev", | ||
"build": "astro check && astro build", | ||
"preview": "astro preview", | ||
"astro": "astro", | ||
"test:integration": "playwright test" | ||
}, | ||
"dependencies": { | ||
"@astrojs/rss": "^4.0.9", | ||
"@astrojs/sitemap": "^3.2.1", | ||
"@eliancodes/brutal-ui": "^0.2.3", | ||
"@unocss/astro": "^0.57.7", | ||
"astro": "^4.16.7", | ||
"astro-font": "^0.0.80", | ||
"satori": "^0.5.0", | ||
"satori-html": "^0.3.2", | ||
"@astrojs/check": "^0.9.4", | ||
"typescript": "^5.6.3" | ||
}, | ||
"devDependencies": { | ||
"@iconify-json/logos": "^1.1.41", | ||
"@iconify-json/uil": "^1.1.8", | ||
"@resvg/resvg-js": "^2.6.0", | ||
"@typescript-eslint/parser": "^6.15.0", | ||
"@unocss/reset": "^0.57.7", | ||
"eslint": "^8.56.0", | ||
"eslint-plugin-astro": "^0.29.1", | ||
"eslint-plugin-jsx-a11y": "^6.8.0", | ||
"prettier": "^3.1.1", | ||
"prettier-plugin-astro": "^0.12.2", | ||
"sharp": "^0.32.6", | ||
"unocss": "^0.57.7" | ||
} | ||
} |
Oops, something went wrong.