Compare commits
No commits in common. "e523385e5cc39fe5f66cd21262f959ca9b12a959" and "7ad3b82fb495c1b43897a76d17b554850e281d59" have entirely different histories.
e523385e5c
...
7ad3b82fb4
@ -1,55 +0,0 @@
|
|||||||
name: Build and Publish
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- 'dev'
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
Build and Publish Discord Bot:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
container:
|
|
||||||
image: catthehacker/ubuntu:act-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v3
|
|
||||||
|
|
||||||
- uses: docker/login-action@v2
|
|
||||||
with:
|
|
||||||
registry: gitea.xeovalyte.dev
|
|
||||||
username: ${{ gitea.actor }}
|
|
||||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
|
||||||
|
|
||||||
- uses: docker/build-push-action@master
|
|
||||||
with:
|
|
||||||
context: ./discordbot
|
|
||||||
push: true
|
|
||||||
tags: gitea.xeovalyte.dev/xeovalyte/polarcraft:nightly
|
|
||||||
|
|
||||||
|
|
||||||
Build and Publish Minecraft Mod:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v3
|
|
||||||
|
|
||||||
- name: Set up JDK
|
|
||||||
uses: actions/setup-java@v1
|
|
||||||
with:
|
|
||||||
java-version: 17
|
|
||||||
|
|
||||||
- name: Grant execute permission for gradlew
|
|
||||||
working-directory: ./mod
|
|
||||||
run: chmod +x gradlew
|
|
||||||
|
|
||||||
- name: Build with Gradle
|
|
||||||
working-directory: ./mod
|
|
||||||
run: ./gradlew build
|
|
||||||
|
|
||||||
- name: Upload Artifacts
|
|
||||||
uses: actions/upload-artifact@v3
|
|
||||||
with:
|
|
||||||
name: polarcraft-mod.jar
|
|
||||||
path: |
|
|
||||||
mod/build/libs/*.jar
|
|
||||||
!mod/build/libs/*-sources.jar
|
|
||||||
!mod/build/libs/*-dev.jar
|
|
||||||
|
|
||||||
|
|
@ -1,8 +1,5 @@
|
|||||||
name: Build and Publish
|
name: Build and Publish
|
||||||
on:
|
on: [push]
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- 'main'
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
Build and Publish Discord Bot:
|
Build and Publish Discord Bot:
|
||||||
@ -12,6 +9,13 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- uses: actions/setup-node@v3
|
||||||
|
with:
|
||||||
|
node-version: 18
|
||||||
|
|
||||||
|
- run: npm install
|
||||||
|
working-directory: ./discordbot
|
||||||
|
|
||||||
- uses: docker/login-action@v2
|
- uses: docker/login-action@v2
|
||||||
with:
|
with:
|
||||||
registry: gitea.xeovalyte.dev
|
registry: gitea.xeovalyte.dev
|
||||||
|
@ -4,10 +4,4 @@ WORKDIR /usr/src/app
|
|||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
RUN apk update && apk upgrade
|
|
||||||
RUN apk add --no-cache sqlite
|
|
||||||
|
|
||||||
RUN npm install
|
|
||||||
RUN npm install --save sqlite3
|
|
||||||
|
|
||||||
CMD ["node", "index.js"]
|
CMD ["node", "index.js"]
|
||||||
|
@ -7,8 +7,8 @@ module.exports = {
|
|||||||
.setName('ping')
|
.setName('ping')
|
||||||
.setDescription('Replies with Pong!'),
|
.setDescription('Replies with Pong!'),
|
||||||
async execute(interaction) {
|
async execute(interaction) {
|
||||||
const reply = await interaction.reply({ embeds: [simpleEmbed(`Websocket heartbeat: **${client.ws.ping}ms**\n Roundtrip latency: **Pinging...**`)], fetchReply: true, ephemeral: true });
|
const reply = await interaction.reply({ embeds: [simpleEmbed(`Websocket heartbeat: **${client.ws.ping}ms**\n Roundtrip latency: **Pinging...**`)], fetchReply: true, emphemeral: true });
|
||||||
|
|
||||||
interaction.editReply({ embeds: [simpleEmbed(`Websocket heartbeat: **${client.ws.ping}ms**\n Roundtrip latency: **${reply.createdTimestamp - interaction.createdTimestamp}ms**`)], ephemeral: true });
|
interaction.editReply({ embeds: [simpleEmbed(`Websocket heartbeat: **${client.ws.ping}ms**\n Roundtrip latency: **${reply.createdTimestamp - interaction.createdTimestamp}ms**`)] });
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
BIN
discordbot/database.sqlite
Normal file
BIN
discordbot/database.sqlite
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user