Skip to content

Commit

Permalink
Added CI/CD support
Browse files Browse the repository at this point in the history
  • Loading branch information
nuckle committed Jan 22, 2024
1 parent 5feec85 commit 5c92004
Show file tree
Hide file tree
Showing 57 changed files with 17,078 additions and 108 deletions.
7 changes: 7 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
root = true

[*]
end_of_line = lf
insert_final_newline = true
indent_style = tab
indent_size = 4
53 changes: 53 additions & 0 deletions .github/workflows/github-worlflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
# Simple workflow for deploying static content to GitHub Pages
name: Deploy static content to Pages

on:
# Runs on pushes targeting the default branch
push:
branches: ['main']

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# Sets the GITHUB_TOKEN permissions to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write

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

jobs:
# Single deploy job since we're just deploying
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Node
uses: actions/setup-node@v3
with:
node-version: 18
cache: 'npm'
- name: Install dependencies
run: npm install
- name: Build
env:
repo: ${{ github.event.repository.name }}
run: npm run build --repository=/${{ env.repo }}/
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
# Upload dist repository
path: './dist'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/node_modules
/dist
18 changes: 14 additions & 4 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,19 @@
image: node:18.16.0
pages:
stage: deploy
cache:
key:
files:
- package-lock.json
prefix: npm
paths:
- node_modules/
script:
- mkdir .public
- cp -r * .public
- mv .public public
- npm install
- npm run build --repository=$CI_PROJECT_NAME
- cp -a dist/. public/
artifacts:
paths:
- public
- public
rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
11 changes: 11 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"tabWidth": 1,
"useTabs": true,
"singleQuote": true,
"semi": true,
"printWidth": 80,
"proseWrap": "always",
"arrayBracketSpacing": false,
"plugins": ["@prettier/plugin-php"]
}

38 changes: 37 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,37 @@
You can access this tool through [Github URL](https://nuckle.github.io/minecraft-offline-uuid-generator/) and [Gitlab URL](https://w973.gitlab.io/minecraft-offline-uuid-generator/)
# Minecraft Offline UUID Generator



## Preview

![image_2024-01-22-11-47-03](img/image_2024-01-22-11-47-03.png)

You can view the page using one of the following URLs:

- [Github URL](https://nuckle.github.io/minecraft-offline-uuid-generator/)
- [Gitlab URL](https://w973.gitlab.io/minecraft-offline-uuid-generator/)

## Features

- supports different syntax (plain text/json)
- ability to download output
- can be locally installed using PWA

## Requirements

- `Node.JS` 18.x.x
- `git`

## Build

```sh
$ git clone https://gitlab.com/w973/minecraft-offline-uuid-generator.git # or https://nuckle.github.io/minecraft-offline-uuid-generator/
$ cd minecraft-offline-uuid-generator/
$ npm install i
$ npm run build
```

Your build will be at `dist` directory



1 change: 0 additions & 1 deletion css/index-e706196a.css

This file was deleted.

Binary file removed favicon-167x167.png
Binary file not shown.
Binary file removed favicon-16x16.png
Binary file not shown.
Binary file removed favicon-180x180.png
Binary file not shown.
Binary file removed favicon-192x192.png
Binary file not shown.
Binary file removed favicon-32x32.png
Binary file not shown.
Binary file removed favicon-48x48.png
Binary file not shown.
Binary file removed favicon-512x512.png
Binary file not shown.
Binary file added img/image_2024-01-22-11-47-03.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
95 changes: 0 additions & 95 deletions index.html

This file was deleted.

Loading

0 comments on commit 5c92004

Please sign in to comment.