Compare commits

...

19 Commits

Author SHA1 Message Date
e523385e5c Update .gitea/workflows/release.yaml
All checks were successful
Build and Publish / Build and Publish Minecraft Mod (push) Successful in 1m44s
Build and Publish / Build and Publish Discord Bot (push) Successful in 10s
2023-08-12 11:35:14 +02:00
9e4a91dd46 fixed ephemeral mistake
Some checks reported warnings
Build and Publish / Build and Publish Discord Bot (push) Successful in 25s
Build and Publish / Build and Publish Minecraft Mod (push) Has been cancelled
2023-08-12 11:34:34 +02:00
d9ae8e729a Update .gitea/workflows/release-nighty.yaml
All checks were successful
Build and Publish / Build and Publish Discord Bot (push) Successful in 26s
Build and Publish / Build and Publish Minecraft Mod (push) Successful in 1m46s
2023-08-12 11:27:02 +02:00
664eafa4cc Update discordbot/Dockerfile
Some checks reported warnings
Build and Publish / Build and Publish Discord Bot (push) Successful in 35s
Build and Publish / Build and Publish Minecraft Mod (push) Has been cancelled
2023-08-12 11:26:33 +02:00
1f810ca533 Update discordbot/Dockerfile
All checks were successful
Build and Publish / Build and Publish Discord Bot (push) Successful in 34s
Build and Publish / Build and Publish Minecraft Mod (push) Successful in 1m46s
2023-08-12 11:22:39 +02:00
64776ad8cf Update discordbot/Dockerfile
Some checks reported warnings
Build and Publish / Build and Publish Minecraft Mod (push) Has been cancelled
Build and Publish / Build and Publish Discord Bot (push) Has been cancelled
2023-08-12 11:22:23 +02:00
e8c2d1495d Update discordbot/Dockerfile
All checks were successful
Build and Publish / Build and Publish Discord Bot (push) Successful in 31s
Build and Publish / Build and Publish Minecraft Mod (push) Successful in 1m46s
2023-08-12 11:15:18 +02:00
8c41ad39c3 Update discordbot/Dockerfile
Some checks failed
Build and Publish / Build and Publish Discord Bot (push) Failing after 23s
Build and Publish / Build and Publish Minecraft Mod (push) Successful in 1m38s
2023-08-12 11:07:40 +02:00
f3c0f7d728 Delete discordbot/database.sqlite
All checks were successful
Build and Publish / Build and Publish Discord Bot (push) Successful in 29s
Build and Publish / Build and Publish Minecraft Mod (push) Successful in 1m38s
2023-08-12 11:05:14 +02:00
217781b4f0 Update .gitea/workflows/release-nighty.yaml
All checks were successful
Build and Publish / Build and Publish Discord Bot (push) Successful in 22s
Build and Publish / Build and Publish Minecraft Mod (push) Successful in 1m28s
2023-08-11 12:42:45 +02:00
b67befd3eb Update .gitea/workflows/release-nighty.yaml
All checks were successful
Build and Publish / Build and Publish Discord Bot (push) Successful in 21s
Build and Publish / Build and Publish Minecraft Mod (push) Successful in 1m30s
2023-08-11 12:37:04 +02:00
d1111732f3 Update .gitea/workflows/release-nighty.yaml
All checks were successful
Build and Publish / Build and Publish Discord Bot (push) Successful in 21s
Build and Publish / Build and Publish Minecraft Mod (push) Successful in 1m31s
2023-08-11 12:32:53 +02:00
3df664614f Update .gitea/workflows/release-nighty.yaml
Some checks failed
Build and Publish / Build and Publish Discord Bot (push) Successful in 24s
Build and Publish / Build and Publish Minecraft Mod (push) Failing after 1m33s
2023-08-11 12:26:09 +02:00
faf823ec37 Update .gitea/workflows/release-nighty.yaml
Some checks failed
Build and Publish / Build and Publish Discord Bot (push) Successful in 21s
Build and Publish / Build and Publish Minecraft Mod (push) Failing after 1m31s
2023-08-11 12:23:37 +02:00
ef355ecd48 Update .gitea/workflows/release-nighty.yaml
All checks were successful
Build and Publish / Build and Publish Discord Bot (push) Successful in 21s
Build and Publish / Build and Publish Minecraft Mod (push) Successful in 1m32s
2023-08-11 12:20:57 +02:00
3968a0e0c8 Update .gitea/workflows/release-nighty.yaml
Some checks failed
Build and Publish / Build and Publish Discord Bot (push) Successful in 21s
Build and Publish / Build and Publish Minecraft Mod (push) Failing after 37s
2023-08-11 12:19:03 +02:00
550542ae50 Update .gitea/workflows/release-nighty.yaml
All checks were successful
Build and Publish / Build and Publish Discord Bot (push) Successful in 21s
Build and Publish / Build and Publish Minecraft Mod (push) Successful in 8s
2023-08-11 12:12:30 +02:00
4c1e01b3c4 Add .gitea/workflows/release-nighty.yaml
All checks were successful
Build and Publish / Build and Publish Discord Bot (push) Successful in 26s
2023-08-11 12:11:00 +02:00
3459e1f733 Update .gitea/workflows/release.yaml 2023-08-11 12:01:53 +02:00
5 changed files with 67 additions and 10 deletions

View File

@ -0,0 +1,55 @@
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

View File

@ -1,5 +1,8 @@
name: Build and Publish
on: [push]
on:
push:
branches:
- 'main'
jobs:
Build and Publish Discord Bot:
@ -9,13 +12,6 @@ jobs:
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- run: npm install
working-directory: ./discordbot
- uses: docker/login-action@v2
with:
registry: gitea.xeovalyte.dev

View File

@ -4,4 +4,10 @@ WORKDIR /usr/src/app
COPY . .
RUN apk update && apk upgrade
RUN apk add --no-cache sqlite
RUN npm install
RUN npm install --save sqlite3
CMD ["node", "index.js"]

View File

@ -7,8 +7,8 @@ module.exports = {
.setName('ping')
.setDescription('Replies with Pong!'),
async execute(interaction) {
const reply = await interaction.reply({ embeds: [simpleEmbed(`Websocket heartbeat: **${client.ws.ping}ms**\n Roundtrip latency: **Pinging...**`)], fetchReply: true, emphemeral: true });
const reply = await interaction.reply({ embeds: [simpleEmbed(`Websocket heartbeat: **${client.ws.ping}ms**\n Roundtrip latency: **Pinging...**`)], fetchReply: true, ephemeral: true });
interaction.editReply({ embeds: [simpleEmbed(`Websocket heartbeat: **${client.ws.ping}ms**\n Roundtrip latency: **${reply.createdTimestamp - interaction.createdTimestamp}ms**`)] });
interaction.editReply({ embeds: [simpleEmbed(`Websocket heartbeat: **${client.ws.ping}ms**\n Roundtrip latency: **${reply.createdTimestamp - interaction.createdTimestamp}ms**`)], ephemeral: true });
},
};

Binary file not shown.