diff --git a/.github/workflows/jekyll-gh-pages.yml b/.github/workflows/jekyll-gh-pages.yml new file mode 100644 index 0000000..6338e92 --- /dev/null +++ b/.github/workflows/jekyll-gh-pages.yml @@ -0,0 +1,50 @@ +name: Deploy to GitHub Pages + +on: + push: + branches: ["main"] + workflow_dispatch: + +# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages +permissions: + contents: read + pages: write + id-token: write + +# Allow only one concurrent deployment +concurrency: + group: "pages" + cancel-in-progress: false + +jobs: + build-and-deploy: + environment: + name: github-pages + 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@v4 + with: + node-version: "22.9.0" + + - name: Install and Build + run: | + npm install --no-audit + npm run build --verbose + + - name: Setup Pages + uses: actions/configure-pages@v5 + + - name: Upload Artifact + uses: actions/upload-pages-artifact@v3 + with: + # This uploads the generated build output folder + path: ./dist + + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4 diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 37fcdae..a2c7e65 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -8,22 +8,22 @@ jobs: main: runs-on: ubuntu-latest steps: - - name: Checkout - uses: actions/checkout@v4 + - name: Checkout + uses: actions/checkout@v4 - - name: Setup Node.js - uses: actions/setup-node@v4 - with: - node-version: "22.9.0" - - - name: Install and Build - run: | - npm install --no-audit - npm run build --verbose + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: "22.9.0" - - name: Deploy - uses: JamesIves/github-pages-deploy-action@v4 - with: - folder: dist - token: ${{ secrets.GITHUB_TOKEN }} - branch: gh-pages + - name: Install and Build + run: | + npm install --no-audit + npm run build --verbose + + - name: Deploy + uses: JamesIves/github-pages-deploy-action@v4 + with: + folder: dist + token: ${{ secrets.GITHUB_TOKEN }} + branch: gh-pages diff --git a/src/App.vue b/src/App.vue index 05035b2..cf04784 100644 --- a/src/App.vue +++ b/src/App.vue @@ -7,4 +7,14 @@ export default { name: "app", }; - + diff --git a/src/main.ts b/src/main.ts index beb86c8..9a8af54 100644 --- a/src/main.ts +++ b/src/main.ts @@ -4,6 +4,7 @@ import router from "./router"; import store from "./store"; import elementPlus from "element-plus"; import "element-plus/dist/index.css"; +import "element-plus/theme-chalk/dark/css-vars.css"; import { createI18n } from "vue-i18n"; import messages from "./locale"; import * as ElementPlusIconsVue from "@element-plus/icons-vue"; diff --git a/src/views/ProblemRating.vue b/src/views/ProblemRating.vue index 1111659..ae6a73d 100644 --- a/src/views/ProblemRating.vue +++ b/src/views/ProblemRating.vue @@ -2,6 +2,10 @@