Compare commits
19 Commits
7ad3b82fb4
...
e523385e5c
Author | SHA1 | Date | |
---|---|---|---|
e523385e5c | |||
9e4a91dd46 | |||
d9ae8e729a | |||
664eafa4cc | |||
1f810ca533 | |||
64776ad8cf | |||
e8c2d1495d | |||
8c41ad39c3 | |||
f3c0f7d728 | |||
217781b4f0 | |||
b67befd3eb | |||
d1111732f3 | |||
3df664614f | |||
faf823ec37 | |||
ef355ecd48 | |||
3968a0e0c8 | |||
550542ae50 | |||
4c1e01b3c4 | |||
3459e1f733 |
55
.gitea/workflows/release-nighty.yaml
Normal file
55
.gitea/workflows/release-nighty.yaml
Normal 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
|
||||||
|
|
||||||
|
|
@ -1,5 +1,8 @@
|
|||||||
name: Build and Publish
|
name: Build and Publish
|
||||||
on: [push]
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- 'main'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
Build and Publish Discord Bot:
|
Build and Publish Discord Bot:
|
||||||
@ -9,13 +12,6 @@ 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,4 +4,10 @@ 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, 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.
Loading…
x
Reference in New Issue
Block a user