Skip to content

Commit

Permalink
New Geetha action runner
Browse files Browse the repository at this point in the history
  • Loading branch information
hmziqrs committed Oct 6, 2024
1 parent d385e74 commit 2a38295
Show file tree
Hide file tree
Showing 6 changed files with 87 additions and 4,931 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/deploy.legacy
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Deploy to GitHub Pages
on:
push:
branches:
- master

jobs:
deploy:
runs-on: ubuntu-latest

steps:
- name: Checkout master branch
uses: actions/checkout@v4
with:
ref: master

- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '18'

- name: Install Bun`
run: |
curl -fsSL https://bun.sh/install | bash
export BUN_INSTALL="$HOME/.bun"
export PATH="$BUN_INSTALL/bin:$PATH"

- name: Install dependencies
run: bun install

- name: Build the project
run: bun run build

- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.ACCESS_TOKEN }}
publish_dir: ./public
publish_branch: gh-pages
77 changes: 44 additions & 33 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,39 +1,50 @@
name: Deploy to GitHub Pages
name: Deploy Next.js site to GitHub Pages

on:
push:
branches:
- master
branches: ["master"] # Set a branch name to trigger deployment
workflow_dispatch: # Allow manual triggering

permissions:
contents: read
pages: write
id-token: write

# Allow one concurrent deployment
concurrency:
group: "pages"
cancel-in-progress: true

jobs:
deploy:
build-and-deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest

steps:
- name: Checkout master branch
uses: actions/checkout@v4
with:
ref: master

- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '18'

- name: Install Bun
run: |
curl -fsSL https://bun.sh/install | bash
export BUN_INSTALL="$HOME/.bun"
export PATH="$BUN_INSTALL/bin:$PATH"
- name: Install dependencies
run: bun install

- name: Build the project
run: bun run build

- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public
publish_branch: gh-pages
- name: Checkout
uses: actions/checkout@v4

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: "20"
cache: 'npm'

- name: Install dependencies
run: npm ci

- name: Setup Pages
uses: actions/configure-pages@v4

- name: Build with Next.js
run: npm run build

- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./out

- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
Binary file modified bun.lockb
Binary file not shown.
4 changes: 3 additions & 1 deletion next.config.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/** @type {import('next').NextConfig} */
const nextConfig = {};
const nextConfig = {
output: 'export'
};

export default nextConfig;
Loading

0 comments on commit 2a38295

Please sign in to comment.