From 6604c09a26767a7b8e12fb1107e9ceec021ab7cc Mon Sep 17 00:00:00 2001 From: Melvin Jones Repol Date: Fri, 17 Nov 2023 22:00:15 +0800 Subject: [PATCH] Initial Commit --- .github/workflows/codeql-analysis.yml | 38 --------------------------- .github/workflows/deployment.yml | 34 ------------------------ .github/workflows/html5validator.yml | 33 ----------------------- .github/workflows/index.yml | 24 ----------------- .github/workflows/static.yml | 37 ++++++++++++++++++++++++++ .gitignore | 1 - 6 files changed, 37 insertions(+), 130 deletions(-) delete mode 100644 .github/workflows/codeql-analysis.yml delete mode 100755 .github/workflows/deployment.yml delete mode 100644 .github/workflows/html5validator.yml delete mode 100644 .github/workflows/index.yml create mode 100755 .github/workflows/static.yml diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml deleted file mode 100644 index 53d253ef..00000000 --- a/.github/workflows/codeql-analysis.yml +++ /dev/null @@ -1,38 +0,0 @@ -name: "CodeQL Analysis" - -on: - push: - branches: [ master ] - pull_request: - branches: [ master ] - - schedule: - - cron: '33 18 * * 4' - workflow_dispatch: - -jobs: - - analyze: - name: Analyze - runs-on: ubuntu-latest - permissions: - actions: read - contents: read - security-events: write - - strategy: - fail-fast: false - matrix: - language: [ 'javascript' ] - - steps: - - name: Checkout repository - uses: actions/checkout@v2 - - - name: Initialize CodeQL - uses: github/codeql-action/init@v1 - with: - languages: ${{ matrix.language }} - - - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v1 diff --git a/.github/workflows/deployment.yml b/.github/workflows/deployment.yml deleted file mode 100755 index 1a15fe51..00000000 --- a/.github/workflows/deployment.yml +++ /dev/null @@ -1,34 +0,0 @@ -name: "Deploy Github Page" - -on: - push: - branches: [ master ] - pull_request: - branches: [ master ] - workflow_dispatch: - -jobs: - build: - - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v3 - - name: Installing dependencies - run: | - composer install - rm -rf .github org .gitignore - git rm -r --cached . - - - name: Push to deployment Repository - id: push_directory - uses: cpina/github-action-push-to-another-repository@main - env: - API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }} - with: - source-directory: '.' - destination-github-username: 'mrepol742' - destination-repository-name: 'mrepol742.github.io' - user-email: mrepol742@gmail.com - commit-message: Initial Commit - target-branch: deployment \ No newline at end of file diff --git a/.github/workflows/html5validator.yml b/.github/workflows/html5validator.yml deleted file mode 100644 index 4fb257b1..00000000 --- a/.github/workflows/html5validator.yml +++ /dev/null @@ -1,33 +0,0 @@ -name: "HTML5 Validator" - -on: - push: - branches: [ master ] - pull_request: - branches: [ master ] - workflow_dispatch: - -jobs: - build: - - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v2 - - name: HTML5Validator - uses: Cyb3r-Jak3/html5validator-action@v7.1.1 - with: - root: / - css: true - continue-on-error: true - - name: Update logs - uses: dmnemec/copy_file_to_another_repo_action@main - env: - API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }} - with: - source_file: 'log.log' - destination_repo: 'mrepol742/mrepol742.github.io' - user_email: 'mrepol742@gmail.com' - user_name: 'mrepol742' - commit_message: 'Initial Commit' - destination_branch: log diff --git a/.github/workflows/index.yml b/.github/workflows/index.yml deleted file mode 100644 index 373839b6..00000000 --- a/.github/workflows/index.yml +++ /dev/null @@ -1,24 +0,0 @@ -name: "Bing IndexNow" - -on: - push: - branches: [ master ] - pull_request: - branches: [ master ] - workflow_dispatch: - -jobs: - build: - - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v2 - - name: Set up JDK 11.0.10 - uses: actions/setup-java@v1 - with: - java-version: 11.0.10 - - name: Index - run: | - javac IndexNow.java - java IndexNow \ No newline at end of file diff --git a/.github/workflows/static.yml b/.github/workflows/static.yml new file mode 100755 index 00000000..d9589ee7 --- /dev/null +++ b/.github/workflows/static.yml @@ -0,0 +1,37 @@ +name: Deploy static content to Pages + +on: + push: + branches: ["master"] + workflow_dispatch: + +permissions: + contents: read + pages: write + id-token: write + +concurrency: + group: "pages" + cancel-in-progress: false + +jobs: + deploy: + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Setup Pages + uses: actions/configure-pages@v3 + - name: Download Dependecies + uses: | + composer install + - name: Upload artifact + uses: actions/upload-pages-artifact@v2 + with: + path: '.' + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v2 diff --git a/.gitignore b/.gitignore index 09675200..d8af1d78 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,3 @@ /arduino-programs *.class -/obfuscate/node_modules /vendor