mirror of
https://github.com/Aviortheking/codestats-skyline.git
synced 2025-04-22 10:12:08 +00:00
Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
472f4a9f08 | |||
ae86d77892 | |||
7190c0c6e9 | |||
2bb86f5fd8 |
59
.github/workflows/build_docker.yml
vendored
Normal file
59
.github/workflows/build_docker.yml
vendored
Normal file
@ -0,0 +1,59 @@
|
||||
name: Build Docker image
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- '*'
|
||||
tags:
|
||||
- v*
|
||||
pull_request:
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Docker meta
|
||||
id: meta
|
||||
uses: docker/metadata-action@v5
|
||||
with:
|
||||
images: |
|
||||
ghcr.io/${{ github.repository }}
|
||||
aviortheking/codestats-skyline
|
||||
tags: |
|
||||
type=edge
|
||||
type=ref,event=pr
|
||||
type=ref,event=branch,prefix=branch-
|
||||
type=semver,pattern={{version}}
|
||||
type=semver,pattern={{major}}.{{minor}}
|
||||
type=semver,pattern={{major}}
|
||||
type=semver,pattern=latest
|
||||
|
||||
- name: Login to Docker Hub
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
username: ${{ secrets.DOCKERHUB_USER }}
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
|
||||
- name: Login to Github Packages
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: ghcr.io
|
||||
username: ${{ github.actor }}
|
||||
password: ${{ secrets.DOCKER_TOKEN }}
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
|
||||
- name: Build and push
|
||||
uses: docker/build-push-action@v5
|
||||
with:
|
||||
context: .
|
||||
push: true
|
||||
file: ./Dockerfile
|
||||
tags: ${{ steps.meta.outputs.tags }}
|
||||
labels: ${{ steps.meta.outputs.labels }}
|
@ -1,5 +1,12 @@
|
||||
# Code::Stats Skyline
|
||||
|
||||
<a href="https://discord.gg/QNupZ4Ywxf">
|
||||
<img src="https://img.shields.io/discord/1143555541004726272?color=%235865F2&label=Discord" alt="Discord Link">
|
||||
</a>
|
||||
<a href="https://github.com/Aviortheking/codestats-skyline/stargazers">
|
||||
<img src="https://img.shields.io/github/stars/Aviortheking/codestats-skyline?style=flat-square" alt="Github stars">
|
||||
</a>
|
||||
|
||||
Tool to generate an STL using your Codestats Total XPs
|
||||
|
||||
[Based on Github's Skyline](skyline.github.com)
|
||||
|
2
main.ts
2
main.ts
@ -102,7 +102,7 @@ export const generateThingy = async (username: string, filterYear?: number): Pro
|
||||
final += `max = ${max};\n`
|
||||
final += `min = ${min};\n`
|
||||
final += `text = "${username}";\n`
|
||||
final += `year = "${filterYear}";\n`
|
||||
final += `year = "${filterYear ?? ''}";\n`
|
||||
|
||||
if (process.env.NODE_ENV !== 'production') {
|
||||
console.log(final)
|
||||
|
Loading…
x
Reference in New Issue
Block a user