diff --git a/.github/labels.yml b/.github/labels.yml new file mode 100644 index 0000000..888d24d --- /dev/null +++ b/.github/labels.yml @@ -0,0 +1,45 @@ +- name: "bug" + color: "d73a4a" + description: "Something isn't working" +- name: "docs" + color: "0075ca" + description: "Improvements or additions to documentation" +- name: "dev" + color: "7c2bc8" + description: "Developers team" +- name: "empty" + color: "bfdadc" + description: "Note for myself" +- name: "feature" + color: "006b75" + description: "Feature for project" +- name: "git" + color: "bfdadc" + description: "Github things" +- name: "help" + color: "008672" + description: "Extra attention is needed" +- name: "img" + color: "6697F1" + description: "Design things" +- name: "invalid" + color: "e4e669" + description: "This doesn't seem right" +- name: "question" + color: "d876e3" + description: "Further information is requested" +- name: "smm" + color: "48959B" + description: "SMM Team" +- name: "solved" + color: "2F73C5" + description: "Case are solved" +- name: "todo" + color: "C69C22" + description: "Work-Walk?" +- name: "web" + color: "46AC05" + description: "Web developers" +- name: "wontfix" + color: "ffffff" + description: "This will not be worked on" \ No newline at end of file diff --git a/.github/workflows/add-to-general.yml b/.github/workflows/add-to-general.yml new file mode 100644 index 0000000..1707cbd --- /dev/null +++ b/.github/workflows/add-to-general.yml @@ -0,0 +1,16 @@ +name: Add issues to General + +on: + issues: + types: + - opened + +jobs: + add-to-general: + name: Add issue to General + runs-on: ubuntu-latest + steps: + - uses: actions/add-to-project@v0.4.0 + with: + project-url: https://github.com/orgs/hostlikepro/projects/4 + github-token: ${{ secrets.ADD_TO_PROJECT_PAT }} diff --git a/.github/workflows/manage-your-labels.yml b/.github/workflows/manage-your-labels.yml new file mode 100644 index 0000000..a6297ed --- /dev/null +++ b/.github/workflows/manage-your-labels.yml @@ -0,0 +1,30 @@ +name: Manage Your Labels + +on: + push: + branches: + - 'main' + paths: + - '.github/labels.yml' + - '.github/workflows/manage-your-labels.yml' + +jobs: + labeler: + runs-on: ubuntu-latest + steps: + - + name: Checkout + uses: actions/checkout@v3 + - + name: Run Labeler + if: success() + uses: crazy-max/ghaction-github-labeler@v4 + with: + github-token: ${{ secrets.LABBELER_TOKEN }} + yaml-file: .github/labels.yml + skip-delete: false + dry-run: false + exclude: | + pxmx + lxc + vds \ No newline at end of file diff --git a/.github/workflows/npm-to-github-pages.yml b/.github/workflows/npm-to-github-pages.yml new file mode 100644 index 0000000..1c68f2a --- /dev/null +++ b/.github/workflows/npm-to-github-pages.yml @@ -0,0 +1,35 @@ +name: Node.js Package + +on: + push: + branches: + - 'build' + paths: + - 'build' + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: 16 + - run: npm ci + - run: npm install --save gh-pages + + deploy: + needs: build + runs-on: ubuntu-latest + permissions: + contents: read + packages: write + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: 16 + - run: npm ci + - run: npm run deploy + env: + NODE_AUTH_TOKEN: ${{secrets.ALL_TOKEN}} \ No newline at end of file diff --git a/package.json b/package.json index bc6761b..421c77a 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,10 @@ "version": "1.0.1", "license": "MIT", "repository":"https://github.com/hostlikepro/RoboUptime", + "homepage": "https://status.hostlikepro.github.io" "scripts": { + "predeploy": "npm run build", + "deploy": "gh-pages -d build", "start": "react-scripts start", "build": "react-scripts build" },