Skip to content

Commit

Permalink
Merge pull request #16 from IMS-Network/production
Browse files Browse the repository at this point in the history
Pull Prod
  • Loading branch information
thefourcraft authored Mar 16, 2024
2 parents 208142b + a4a3423 commit 5602de0
Show file tree
Hide file tree
Showing 4 changed files with 100 additions and 20 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/builds-preview.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Fork PR Handler with GitHub CLI

on:
pull_request:
types: [opened, synchronize, reopened]

jobs:
handle-fork-pr:
runs-on: ubuntu-latest
if: github.event.pull_request.head.repo.fork == true
steps:
- name: Checkout code from the fork's PR
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.ref }}
repository: ${{ github.event.pull_request.head.repo.full_name }}

- name: Configure Git
run: |
git config user.name "GitHub Action"
git config user.email "action@github.com"
- name: Create and push new branch
run: |
NEW_BRANCH="build-${{ github.event.pull_request.number }}"
git checkout -b $NEW_BRANCH
git push origin $NEW_BRANCH
- name: Create PR in original repository
run: |
gh pr create \
--title "Automated PR for changes from fork #${{ github.event.pull_request.number }}" \
--body "This is an automated PR to merge changes from the fork's PR #${{ github.event.pull_request.number }}" \
--base production \
--head ${{ github.repository }}:$NEW_BRANCH \
--repo ${{ github.repository }} \
--label "automated-pr" \
--reviewer "team_reviewers" \
--assignee "@me"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
49 changes: 49 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Deploy static content to Pages

on:
push:
branches: ["production"]
workflow_dispatch:

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

concurrency:
group: "pages"
cancel-in-progress: false

jobs:
deploy:
environment:
name: israel-roblox-docs
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '20'

- name: Install dependencies
run: npm install

- name: Build site
run: npm run build

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

- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
# Specify the path to your build directory instead of the root
path: './build'

- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
22 changes: 2 additions & 20 deletions docs/learn-lua/congratulations.md
Original file line number Diff line number Diff line change
@@ -1,23 +1,5 @@
---
sidebar_position: 6
sidebar_position: 1
---

# Congratulations!

You have just learned the **basics of Docusaurus** and made some changes to the **initial template**.

Docusaurus has **much more to offer**!

Have **5 more minutes**? Take a look at **[versioning](../tutorial-extras/manage-docs-versions.md)** and **[i18n](../tutorial-extras/translate-your-site.md)**.

Anything **unclear** or **buggy** in this tutorial? [Please report it!](https://github.com/facebook/docusaurus/discussions/4610)

## What's next?

- Read the [official documentation](https://docusaurus.io/)
- Modify your site configuration with [`docusaurus.config.js`](https://docusaurus.io/docs/api/docusaurus-config)
- Add navbar and footer items with [`themeConfig`](https://docusaurus.io/docs/api/themes/configuration)
- Add a custom [Design and Layout](https://docusaurus.io/docs/styling-layout)
- Add a [search bar](https://docusaurus.io/docs/search)
- Find inspirations in the [Docusaurus showcase](https://docusaurus.io/showcase)
- Get involved in the [Docusaurus Community](https://docusaurus.io/community/support)
# This is a test
8 changes: 8 additions & 0 deletions docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,10 @@ const config: Config = {
label: 'IMS-Network',
href: 'https://ims-network.net',
},
{
label: 'Roblox Studios IL',
href: 'https://discord.com/invite/roblox-studio-il-1098908799340908565',
},

],
},
Expand All @@ -119,6 +123,10 @@ const config: Config = {
label: 'גיטהאב',
href: 'https://github.com/IMS-Network/Israel-roblox-docs',
},
{
label: 'אילוסטרציות על ידי Storyset',
href: 'https://storyset.com/',
},
],
},
],
Expand Down

0 comments on commit 5602de0

Please sign in to comment.